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 StartTimerUpdatePercentage(float _maxTimer, EndTimer endFunc, UpdatingPercentage updatingFunc = null) { step = 1; timer = maxTimer = _maxTimer; endTimerFunction = endFunc; endEverySeconds = null; updating = updatingFunc; currentState = CounterState.RUN; }
public void StartTimer(float _maxTimer, EndTimer endFunc) { step = 1; timer = maxTimer = _maxTimer; _endTimerFunction = endFunc; _endEverySeconds = null; _updating = null; currentState = CounterState.RUN; }