private void OnCollisionExit2D(Collision2D collision) { if (collision.gameObject.tag == "Ground") { GenericPlayerMove.isGrounded = false; GenericPlayerMove.ResetAnimationBools(); } }
private void OnCollisionExit2D(Collision2D collision) { if (collision.gameObject.tag == "Ground") { GenericPlayerMove.ResetAnimationBools(); GenericPlayerMove.Crouching = true; } }
private void OnCollisionStay2D(Collision2D collision) { if (collision.gameObject.tag == "Ground") { GenericPlayerMove.isGrounded = true; GenericPlayerMove.ResetAnimationBools(); PlayerAnimator.SetBool("Idle", true); } }