void Finish() { countDownState = CountdownStateEnum.Finished; if (TimerFinishEvent != null) { TimerFinishEvent(this, null); } }
public void ResetCountdown(CountdownStateEnum inState) { switch(inState) { case CountdownStateEnum.Paused: case CountdownStateEnum.Countdown: RemainingTime = CountdownTime; break; case CountdownStateEnum.Relaxing: RemainingTime = Mathf.Min(RemainingTime, CountdownTime); break; case CountdownStateEnum.Finished: break; } countDownState = inState; }
public void ResetCountdown(CountdownStateEnum inState) { switch (inState) { case CountdownStateEnum.Paused: case CountdownStateEnum.Countdown: RemainingTime = CountdownTime; break; case CountdownStateEnum.Relaxing: RemainingTime = Mathf.Min(RemainingTime, CountdownTime); break; case CountdownStateEnum.Finished: break; } countDownState = inState; }
public void StartCountdown(float inTime) { CountdownTime = inTime; RemainingTime = inTime; countDownState = CountdownStateEnum.Countdown; }
public void StartCountdown() { countDownState = CountdownStateEnum.Countdown; }
void Finish() { countDownState = CountdownStateEnum.Finished; if (TimerFinishEvent != null) TimerFinishEvent(this, null); }
void Start() { countDownState = StartActive ? CountdownStateEnum.Countdown : CountdownStateEnum.Paused; RemainingTime = CountdownTime; }