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(float interval, float totalTime, TimerEventHandle h, TimerDestroyHanle dh, bool alwaysRepeat = false) { Interval = interval; TotalTime = totalTime; handle = h; AlwaysRepeat = alwaysRepeat; destroyHandle = dh; leftTime = interval; }