Example #1
0
 public void RegNetEvent <T>(Action <T> callBack) where T : FNetHead, new()
 {
     EventManager.ToolEvent pr = NetworkManager.instance.RegNetEvent <T>(callBack);
     if (pr != null)
     {
         mNetEvents.Add(typeof(T), pr);
     }
 }
Example #2
0
 internal void RemvoeNetEvent(EventManager.ToolEvent tool)
 {
     mNetMsg.RemvoeNetEvent(tool);
 }
Example #3
0
 public void RemvoeNetEvent(EventManager.ToolEvent tool)
 {
     EventManager.instance.RemoveEvent(tool);
 }