public int AddTimer(float ttl, bool once, int cb, string debugInfo, bool bLateUpdate) { int id = 0; if (bLateUpdate) { id = _LateTimerList.AddTimer(ttl, once, cb, debugInfo); } else { id = _TimerList.AddTimer(ttl, once, cb, debugInfo); } return(id); }
public int AddTimer(float ttl, bool bOnce, int cb, string debugInfo) { if (_TimerList == null) { _TimerList = new CTimerList(); } return(_TimerList.AddTimer(ttl, bOnce, cb, debugInfo)); }