示例#1
0
 public void EventDestroy(CTimerEvent timeEvent)
 {
     if (timeEvent != null)
     {
         timeEvents.Remove(timeEvent);
         timeEvent = null;
     }
 }
示例#2
0
    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);
    }
示例#3
0
    public CTimerEvent NewEvent(CTimerEvent cTimerEvent)
    {
        timeEvents.Add(cTimerEvent);

        return(cTimerEvent);
    }