public void Dispose()
 {
     TypeEventSystem.UnRegister(OnReceive);
 }
示例#2
0
 public void UnRegisterEvent <TEvent>(Action <TEvent> onEvent)
 {
     mTypeEventSystem.UnRegister <TEvent>(onEvent);
 }
示例#3
0
 public static void UnRegisterEvent <T>(this IOnEvent <T> self) where T : struct
 {
     TypeEventSystem.UnRegister <T>(self.OnEvent);
 }