Ejemplo n.º 1
0
 public void CancelDash()
 {
     if (isDashing)
     {
         playerCombat.EndShieldBash();
         dashTimeLeft = 0; //only needed when CancelDash is called elsewhere
         isDashing    = false;
         StartCoroutine(EndDash());
     }
     isDashing = false; //REPLACE if not needed
 }