protected virtual void UnregsterEvent(AIEvent aEvent) { for (int i = 0; i < _eventList.Count; ++i) { if (_eventList[i] == aEvent) { _eventList.RemoveAt(i); aEvent.Stop(); } } }
protected virtual AIEvent RegisterEvent(AIEvent aEvent) { _eventList.Add(aEvent); aEvent.Brain = _brain; return aEvent; }