private void TimerStatusUpdated() { NotifyPropertyChanged("CanStartTimer"); NotifyPropertyChanged("CanEndTimer"); NotifyPropertyChanged("RemainingTimePercent"); TimerUpdated?.Invoke(this, EventArgs.Empty); }
public void UpdateTimer() { _elapsedTime++; if (_elapsedTime <= _currentLevelConfig.time + GameManager.TIME_BEFORE_LEAVE) { TimerUpdated?.Invoke(this, _elapsedTime); } else { TimerEnded?.Invoke(this, _elapsedTime); } }
public void UpdateTimer() { _elapsedTime++; if (_elapsedTime <= GameManager.TIME_BEFORE_END) { TimerUpdated?.Invoke(this, _elapsedTime); } else { TimerEnded?.Invoke(this, _elapsedTime); } }
/// <summary> /// Invokes a timer-updated - if the timer is enabled - event. /// </summary> protected void InvokeTimerUpdated() { TimerUpdated?.Invoke(this, new TimerArgs(this)); }