public void InvokeTimerStopped() { System.Windows.Application.Current.Dispatcher.Invoke(delegate() { OnTimerStopped.Invoke(); }); }
public void StopTimer() { _isPaused = true; _timerIsOn = false; StopCoroutine(_coroutine); OnTimerStopped?.Invoke(GetGameTime()); }
public void Stop() { if (!isStart) { return; } isStart = false; OnTimerStopped?.Invoke(); }
public void StopTimer() { if (timerRoutine == null) { return; } StopCoroutine(timerRoutine); timerRoutine = null; OnTimerStopped?.Invoke(this); }
private IEnumerator RunTimer() { OnTimerStarted?.Invoke(this); while (timeLeft > 0) { yield return(null); SetTimeLeft(timeLeft - Time.deltaTime); } OnTimerStopped?.Invoke(this); OnTimerFinished?.Invoke(this); }
private void StopTON() { OnTimerStopped?.Invoke(); timer?.Stop(); }