Esempio n. 1
0
 public override void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <int>(this, parameter);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <int>(this, parameter);
     }
 }
Esempio n. 2
0
 public virtual void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent(this);
     }
     else
     {
         eventHandler.TriggerInstanceEvent(this);
     }
 }
Esempio n. 3
0
 public void Raise <T, U, V>(T arg1, U arg2, V arg3, GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <T, U, V>(this, arg1, arg2, arg3);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <T, U, V>(this, arg1, arg2, arg3);
     }
 }
Esempio n. 4
0
 public void Raise <T>(T value, GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <T>(this, value);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <T>(this, value);
     }
 }
Esempio n. 5
0
 public void Delete <T, U, V>(UnityAction <T, U, V> action, GameEventHandler eventHandler = null)
 {
     GameEventHandler.RemoveEventListener <T, U, V>(this, action);
 }
Esempio n. 6
0
 public void Delete(UnityAction action, GameEventHandler eventHandler = null)
 {
     GameEventHandler.RemoveEventListener(this, action);
 }
Esempio n. 7
0
 public void Listen <T, U, V>(UnityAction <T, U, V> action, GameEventHandler eventHandler = null)
 {
     GameEventHandler.AddEventListener <T, U, V>(this, action);
 }
Esempio n. 8
0
 public void Listen(UnityAction action, GameEventHandler eventHandler = null)
 {
     GameEventHandler.AddEventListener(this, action);
 }