Beispiel #1
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);
    }
Beispiel #2
0
    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;
    }