public void TimerEnd() { if (IEnded != null) { IEnded.Invoke(); } }
public void InvokeTimerStarted() { System.Windows.Application.Current.Dispatcher.Invoke(delegate() { OnTimerStarted?.Invoke(); }); }
IEnumerator Start() { m_HalfTime = m_Duration / 2; OnTimerStarted?.Invoke(); yield return(StartCoroutine(WaitAndPrint(1.0F))); OnTimerEnded?.Invoke(); }
public void StartTimer() { AllowedToGo = true; if (IStarted != null) { IStarted.Invoke(); } }
public void StopTimer() { AllowedToGo = false; timerText.text = ""; if (IStopped != null) { IStopped.Invoke(); } }
public void StartTimer() { _timer = 0; _timerIsOn = true; OnTimerStarted?.Invoke(GetGameTime()); OnNewMonth?.Invoke(GetGameTime()); OnNewYear?.Invoke(GetGameTime()); _coroutine = StartCoroutine(NextTime()); }
private IEnumerator Start() { _halfTime = _duration / 2; OnTimerStarted?.Invoke(); yield return(StartCoroutine(WaitAndPrint(1.0f))); OnTimerEnded?.Invoke(); }
public void ResetTimer() { StopTimer(); CurrentTime = TargetTime; timerText.text = ""; if (IReset != null) { IReset.Invoke(); } }
private IEnumerator RunTimer() { OnTimerStarted?.Invoke(this); while (timeLeft > 0) { yield return(null); SetTimeLeft(timeLeft - Time.deltaTime); } OnTimerStopped?.Invoke(this); OnTimerFinished?.Invoke(this); }
private void StartTON() { timer?.Start(); OnTimerStarted?.Invoke(); }