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