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