Пример #1
0
 public void StopTimer()
 {
     currentState     = CounterState.STOP;
     endTimerFunction = null;
     endEverySeconds  = null;
     //      Debug.Log ("stop timer ");
 }
Пример #2
0
 public void StartTimerUpdatePercentage(float _maxTimer, EndTimer endFunc, UpdatingPercentage updatingFunc = null)
 {
     step             = 1;
     timer            = maxTimer = _maxTimer;
     endTimerFunction = endFunc;
     endEverySeconds  = null;
     updating         = updatingFunc;
     currentState     = CounterState.RUN;
 }
Пример #3
0
 public void StartTimerUpdateSeconds(float _maxTimer, EndTimer endFunc, EndEverySeconds endSecs = null)
 {
     step             = 1;
     timer            = maxTimer = _maxTimer;
     endTimerFunction = endFunc;
     endEverySeconds  = endSecs;
     updating         = null;
     currentState     = CounterState.RUN;
 }
Пример #4
0
 public void StartTimer(float _maxTimer, EndTimer endFunc)
 {
     step              = 1;
     timer             = maxTimer = _maxTimer;
     _endTimerFunction = endFunc;
     _endEverySeconds  = null;
     _updating         = null;
     currentState      = CounterState.RUN;
 }
Пример #5
0
 private void EndBtn_Click(object sender, EventArgs e)
 {
     EndTimer?.Invoke(sender, EventArgs.Empty);
     timer.Stop();
 }
Пример #6
0
 public void StopTimer()
 {
     currentState      = CounterState.STOP;
     _endTimerFunction = null;
     _endEverySeconds  = null;
 }