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 }