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