コード例 #1
0
 public override void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <int>(this, parameter);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <int>(this, parameter);
     }
 }
コード例 #2
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);
     }
 }
コード例 #3
0
 public virtual void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent(this);
     }
     else
     {
         eventHandler.TriggerInstanceEvent(this);
     }
 }
コード例 #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);
     }
 }