private IEnumerator StopDashAfterSeconds(float t) { yield return(new WaitForSeconds(t)); baseFirstPersonController.forwardSpeed = baseForwardSpeed; OnStopDash?.Invoke(); dashing = false; }
private void StopDash() { if (_dashCoroutine == null) { return; } StopCoroutine(_dashCoroutine); _dashCoroutine = null; OnUnblockEvent?.Invoke(actionBlocks); OnStopDash?.Invoke(); }
public void StopDash() { OnStopDash?.Invoke(); }