Example #1
0
 public static void Subscribe <T>(Action <T> callback) where T : IHotEvent
 {
     EventNotifier <T> .Add(callback);
 }
Example #2
0
 public static void Notify <T>(T hotEvent) where T : IHotEvent
 {
     EventNotifier <T> .Notify(hotEvent);
 }
Example #3
0
 public static void Clear <T>() where T : IHotEvent
 {
     EventNotifier <T> .Clear();
 }
Example #4
0
 public static void Unsubscribe <T>(Action <T> callback) where T : IHotEvent
 {
     EventNotifier <T> .Remove(callback);
 }