Exemple #1
0
 public void SwitchToLunging()
 {
     if (_movementDirection != Vector2.Zero)
     {
         DynamicBody.ApplyLinearImpulse(20.0f * Vector2.Normalize(_movementDirection));
         CurrentState = State.Lunging;
         PlayNewCharacterAnimation();
         _lungeTime = 0;
     }
 }