Пример #1
0
 public static void UnRegisterMsg <T, U, V>(uint msg, OnMsgHandler <T, U, V> handler)
 {
     OnUnRegisterMsg(msg, handler);
     msgHandlerDic[msg] = (OnMsgHandler <T, U, V>)msgHandlerDic[msg] - handler;
 }
Пример #2
0
 public static void RegisterMsg <T, U>(uint msg, OnMsgHandler <T, U> handler)
 {
     OnRegisterMsg(msg, handler);
     msgHandlerDic[msg] = (OnMsgHandler <T, U>)msgHandlerDic[msg] + handler;
 }