private void Detach(Collidable collided) { while (collided.IsColliding(this.weapon)) { this.MoveBackward(); this.weapon.Transform(); } }
// detect grounded state bool IsGrounded() { return(footCollider.IsColliding(floorLayerMask) || m_characterController.isGrounded); }