public void NotifyEvent(EAiEventType type) { for (int i = 0; i < mEventListeners.Count; i++) { AIEventListener listener = mEventListeners[i]; listener.OnEvent(this, type); } }
public void OnEvent(AIUnit unit, EAiEventType eventType) { if (unit != mOwner) { return; } switch (eventType) { case EAiEventType.SwitchAiClip: { Reset(); break; } } }
public void NotifyEvent(EAiEventType type) { for (int i = 0; i < mEventListeners.Count; i++) { AIEventListener listener = mEventListeners[i]; listener.OnEvent(this,type); } }