Beispiel #1
0
 /// <summary>
 /// Finishes the fall animation, ONLY CALLED BY ANIMATION.
 /// </summary>
 public void FallFinished()
 {
     transform.position = new Vector3(tmpFallLoc.x, tmpFallLoc.y, transform.position.z);
     pc.EnablePlayer();
     damageCollider.enabled = true;
     normalCollider.enabled = true;
     TakeDamage(tmpFallDamage);
     falling             = false;
     rb.constraints      = RigidbodyConstraints2D.FreezeRotation;
     invincibilityFrames = true;
 }