public static TimeEvent Add(TimeEvent.Name timeName, Command pCommand, float deltaTimeToTrigger) { TimerMan pMan = TimerMan.PrivGetInstance(); Debug.Assert(pMan != null); TimeEvent pNode = (TimeEvent)pMan.baseAddSorted(deltaTimeToTrigger + GetCurrTime()); Debug.Assert(pNode != null); Debug.Assert(pCommand != null); Debug.Assert(deltaTimeToTrigger >= 0.0f); pNode.Set(timeName, pCommand, deltaTimeToTrigger); return(pNode); }