Example #1
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;
 }
Example #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;
 }
Example #3
0
 public void StartTimer(float _maxTimer, EndTimer endFunc)
 {
     step              = 1;
     timer             = maxTimer = _maxTimer;
     _endTimerFunction = endFunc;
     _endEverySeconds  = null;
     _updating         = null;
     currentState      = CounterState.RUN;
 }