Пример #1
0
 protected virtual void UnregsterEvent(AIEvent aEvent)
 {
     for (int i = 0; i < _eventList.Count; ++i)
     {
         if (_eventList[i] == aEvent)
         {
             _eventList.RemoveAt(i);
             aEvent.Stop();
         }
     }
 }
Пример #2
0
 protected virtual AIEvent RegisterEvent(AIEvent aEvent)
 {
     _eventList.Add(aEvent);
     aEvent.Brain = _brain;
     return aEvent;
 }