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

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

            StopCoroutine(_dashCoroutine);
            _dashCoroutine = null;

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