Beispiel #1
0
 public void StopVerticalMove()
 {
     onLadder    = false;
     rb.bodyType = RigidbodyType2D.Dynamic;
     unit.DisableState();
     anim.SetBool("climb", onLadder);
     moveVertical = Vector2.zero;
 }
Beispiel #2
0
 // Animation event
 public void Skill2End()
 {
     playerScill2Collider.SetActive(false);
     rb.constraints = RigidbodyConstraints2D.FreezeRotation;
     mover.CancelMove();
     if (!jump.isGrounded)
     {
         unit.Fell();
         return;
     }
     unit.DisableState();
 }