public override void OnCollisionEnter2D(Collision2D other)
{
base.OnCollisionEnter2D (other);
/*if (other.gameObject.tag == "floor" || other.gameObject.tag == "impTrigger" || other.gameObject.tag == "moving") {
// fall death if you're falling too quickly
//print(other.relativeVelocity.y);
if (other.relativeVelocity.y <= -25.0f) {
if (PlayerAnim && !CharacterBehavior.Dying) {
//print ("Death by falling! Eeheehee!");
PlayerAnim.SetBool ("FallDeath", true);
CharacterBehavior.Dying = true;
}
}
}*/
if (onGround())
{
PlayerAnim.SetBool("Jump", false);
PlayerAnim.SetBool("Fall", false);
}
//if (other.gameObject.layer == 12)
//{
// cdImp = other.gameObject;
//}
}