public void AddListeners()
 {
     EventDispatch.AddEventListener <AudioSource, AudioClip>(Event.LogicSoundEvent.LogicPlaySoundByClip, LogicPlaySoundByClip);
 }
Beispiel #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);
 }
 private static void AddListeners()
 {
     EventDispatch.AddEventListener <RoleAttachedInfo>(Event.FrameWorkEvent.EntityAttached, OnEntityAttached);
 }
Beispiel #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);
 }