Esempio n. 1
0
 public void Subscribe <T>(Action <T> act)
 {
     World.Subscribe(EventSubscription.Create <T>((e) => _actions.Add(() => act(e)), this));
 }
Esempio n. 2
0
 public static void Subscribe <T>(Action <T> onEvent, object owner)
 {
     Subscribe(EventSubscription.Create <T>(onEvent, owner));
 }