public void OnEvent(IOnEvent callback) { this.eventCallback = callback; }
public static IUnRegister RegisterEvent <T>(this IOnEvent <T> self) where T : struct { return(TypeEventSystem.Global.Register <T>(self.OnEvent)); }
public static void UnRegisterEvent <T>(this IOnEvent <T> self) where T : struct { TypeEventSystem.Global.UnRegister <T>(self.OnEvent); }
public static IDisposable RegisterEvent <T>(this IOnEvent <T> self) where T : struct { return(TypeEventSystem.Register <T>(self.OnEvent)); }