/*--------------------------------------------------------------------------------------*/ /* */ /* OnStartTimerEvent: Handler for OnStartTimerEvent Event */ /* param: */ /* GameEvent ige - access to readonly variables in event */ /* */ /*--------------------------------------------------------------------------------------*/ void OnStartTimerEvent(StartTimerEvent startEvent) { stopTimer = false; if (startEvent.decrementTime) { StartCoroutine(DecrementTimer()); } else { StartCoroutine(IncrementTimer()); } }
/*public static TimerManager GetInstance() * { * if (s_Instance) * return s_Instance; * else * return null; * }*/ public void StartTimerCallback(GameEvent e) { StartTimerEvent ev = (StartTimerEvent)e; Timers.Add(new Timer(ev.TimerId, ev.Duration, true, ev.Callback)); }
private void OnStartTimerEvent(StartTimerEvent evt) { StartCoroutine(UpdateStartGameUI()); }