コード例 #1
0
 private void OnCollisionExit2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Ground")
     {
         GenericPlayerMove.isGrounded = false;
         GenericPlayerMove.ResetAnimationBools();
     }
 }
コード例 #2
0
 private void OnCollisionExit2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Ground")
     {
         GenericPlayerMove.ResetAnimationBools();
         GenericPlayerMove.Crouching = true;
     }
 }
コード例 #3
0
    private void OnCollisionStay2D(Collision2D collision)
    {
        if (collision.gameObject.tag == "Ground")
        {
            GenericPlayerMove.isGrounded = true;

            GenericPlayerMove.ResetAnimationBools();
            PlayerAnimator.SetBool("Idle", true);
        }
    }