예제 #1
0
 private void TimerStatusUpdated()
 {
     NotifyPropertyChanged("CanStartTimer");
     NotifyPropertyChanged("CanEndTimer");
     NotifyPropertyChanged("RemainingTimePercent");
     TimerUpdated?.Invoke(this, EventArgs.Empty);
 }
예제 #2
0
        public void UpdateTimer()
        {
            _elapsedTime++;

            if (_elapsedTime <= _currentLevelConfig.time + GameManager.TIME_BEFORE_LEAVE)
            {
                TimerUpdated?.Invoke(this, _elapsedTime);
            }
            else
            {
                TimerEnded?.Invoke(this, _elapsedTime);
            }
        }
예제 #3
0
    public void UpdateTimer()
    {
        _elapsedTime++;

        if (_elapsedTime <= GameManager.TIME_BEFORE_END)
        {
            TimerUpdated?.Invoke(this, _elapsedTime);
        }
        else
        {
            TimerEnded?.Invoke(this, _elapsedTime);
        }
    }
예제 #4
0
 /// <summary>
 ///     Invokes a timer-updated - if the timer is enabled - event.
 /// </summary>
 protected void InvokeTimerUpdated()
 {
     TimerUpdated?.Invoke(this, new TimerArgs(this));
 }