public void setAll(TimerEvent.TimerEventName mEventName, Command mCommand, float mDeltaTime) { this.cTimerEventName = mEventName; this.cCommand = mCommand; this.cDeltaTime = mDeltaTime; this.cTriggerTime = TimerManager.GetCurrTime() + mDeltaTime; }
//--------------------------------------------------------------------------------------------------------- // 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; }