Esempio n. 1
0
 private void HandleDodging()
 {
     if (!Input.GetButtonDown(m_DodgeInputButton))
     {
         return;
     }
     m_Movement.AddImpulse(new Vector2(Input.GetAxis(m_HorizontalInputAxis), Input.GetAxis(m_VerticalInputAxis)).normalized *m_DodgeStrength);
 }