public void EventDestroy(CTimerEvent timeEvent) { if (timeEvent != null) { timeEvents.Remove(timeEvent); timeEvent = null; } }
public CTimerEvent NewEvent(float interval, float totalTime, TimerEventHandle h, bool alwaysRepeat = false) { CTimerEvent timerEvent = new CTimerEvent(interval, totalTime, h, EventDestroy, alwaysRepeat); timeEvents.Add(timerEvent); return(timerEvent); }
public CTimerEvent NewEvent(CTimerEvent cTimerEvent) { timeEvents.Add(cTimerEvent); return(cTimerEvent); }