Example #1
0
    private IEnumerator StopDashAfterSeconds(float t)
    {
        yield return(new WaitForSeconds(t));

        baseFirstPersonController.forwardSpeed = baseForwardSpeed;
        OnStopDash?.Invoke();
        dashing = false;
    }
Example #2
0
        private void StopDash()
        {
            if (_dashCoroutine == null)
            {
                return;
            }

            StopCoroutine(_dashCoroutine);
            _dashCoroutine = null;

            OnUnblockEvent?.Invoke(actionBlocks);
            OnStopDash?.Invoke();
        }
Example #3
0
 public void StopDash()
 {
     OnStopDash?.Invoke();
 }