Пример #1
0
 public void OnEvent(IOnEvent callback)
 {
     this.eventCallback = callback;
 }
Пример #2
0
 public static IUnRegister RegisterEvent <T>(this IOnEvent <T> self) where T : struct
 {
     return(TypeEventSystem.Global.Register <T>(self.OnEvent));
 }
Пример #3
0
 public static void UnRegisterEvent <T>(this IOnEvent <T> self) where T : struct
 {
     TypeEventSystem.Global.UnRegister <T>(self.OnEvent);
 }
Пример #4
0
 public static IDisposable RegisterEvent <T>(this IOnEvent <T> self) where T : struct
 {
     return(TypeEventSystem.Register <T>(self.OnEvent));
 }