Пример #1
0
        public void setAll(TimerEvent.TimerEventName mEventName, Command mCommand, float mDeltaTime)
        {
            this.cTimerEventName = mEventName;
            this.cCommand        = mCommand;
            this.cDeltaTime      = mDeltaTime;

            this.cTriggerTime = TimerManager.GetCurrTime() + mDeltaTime;
        }
Пример #2
0
        //---------------------------------------------------------------------------------------------------------
        // Methods
        //---------------------------------------------------------------------------------------------------------

        public void Set(TimeEvent.Name eventName, Command pCommand, float deltaTimeToTrigger)
        {
            Debug.Assert(pCommand != null);

            this.name      = eventName;
            this.pCommand  = pCommand;
            this.deltaTime = deltaTimeToTrigger;

            // set the trigger time
            this.triggerTime = TimerManager.GetCurrTime() + deltaTimeToTrigger;
        }