private void Detach(Collidable collided)
 {
     while (collided.IsColliding(this.weapon))
     {
         this.MoveBackward();
         this.weapon.Transform();
     }
 }
Пример #2
0
 // detect grounded state
 bool IsGrounded()
 {
     return(footCollider.IsColliding(floorLayerMask) || m_characterController.isGrounded);
 }