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