Пример #1
0
 public void RemoveNotificationEvent(NotificateMsgType key, OnDelegateFunc func)
 {
     if (!_mapFun.ContainsKey(key))
     {
         return;
     }
     _mapFun[key] -= func;
 }
Пример #2
0
 public void AddNotificationEvent(NotificateMsgType key, OnDelegateFunc func)
 {
     if (!_mapFun.ContainsKey(key))
     {
         _mapFun[key] = null;
     }
     _mapFun[key] += func;
 }