Пример #1
0
 public void AddListeners()
 {
     EventDispatch.AddEventListener <AudioSource, AudioClip>(Event.LogicSoundEvent.LogicPlaySoundByClip, LogicPlaySoundByClip);
 }
Пример #2
0
 public virtual void AddUniqEventListener <T, U, V, W>(string eventType, Action <T, U, V, W> handler)
 {
     EventDispatch.AddEventListener <T, U, V, W>(eventType, handler);
 }
Пример #3
0
 private static void AddListeners()
 {
     EventDispatch.AddEventListener <RoleAttachedInfo>(Event.FrameWorkEvent.EntityAttached, OnEntityAttached);
 }
Пример #4
0
 public virtual void AddUniqEventListener(string eventType, Action handler)
 {
     EventDispatch.AddEventListener(MakeUniqMessage(eventType), handler);
 }
 private void AddListeners()
 {
     EventDispatch.AddEventListener <EntityParent, int>(Event.LogicSoundEvent.OnHitYelling, OnHitYelling);
 }