Пример #1
0
        public static TimeEvent Add(TimeEvent.Name name, Command pCommand, float deltaTimeToTrigger)
        {
            // ensure call Create() first
            TimerMan pMan = TimerMan.GetInstance();

            Debug.Assert(pMan != null);

            TimeEvent pTimeEvent = (TimeEvent)pMan.getNewNode();

            Debug.Assert(pTimeEvent != null);

            Debug.Assert(pCommand != null);
            Debug.Assert(deltaTimeToTrigger >= 0.0f);

            pTimeEvent.set(name, pCommand, deltaTimeToTrigger);
            pMan.sortTimeEventList(pTimeEvent);
            return(pTimeEvent);
        }