public void StopTimer() { currentState = CounterState.STOP; endTimerFunction = null; endEverySeconds = null; // Debug.Log ("stop timer "); }
public void StartTimerUpdatePercentage(float _maxTimer, EndTimer endFunc, UpdatingPercentage updatingFunc = null) { step = 1; timer = maxTimer = _maxTimer; endTimerFunction = endFunc; endEverySeconds = null; updating = updatingFunc; currentState = CounterState.RUN; }
public void StartTimerUpdateSeconds(float _maxTimer, EndTimer endFunc, EndEverySeconds endSecs = null) { step = 1; timer = maxTimer = _maxTimer; endTimerFunction = endFunc; endEverySeconds = endSecs; updating = null; currentState = CounterState.RUN; }
public void StartTimer(float _maxTimer, EndTimer endFunc) { step = 1; timer = maxTimer = _maxTimer; _endTimerFunction = endFunc; _endEverySeconds = null; _updating = null; currentState = CounterState.RUN; }
public void StopTimer() { currentState = CounterState.STOP; _endTimerFunction = null; _endEverySeconds = null; }