Exemple #1
0
 public void RemoveNotificationEvent(NotificateMsgType key, OnDelegateFunc func)
 {
     if (!_mapFun.ContainsKey(key))
     {
         return;
     }
     _mapFun[key] -= func;
 }
Exemple #2
0
 public void AddNotificationEvent(NotificateMsgType key, OnDelegateFunc func)
 {
     if (!_mapFun.ContainsKey(key))
     {
         _mapFun[key] = null;
     }
     _mapFun[key] += func;
 }
Exemple #3
0
        public void PostNotificationEvent(NotificateMsgType key, Notification node = null)
        {
            if (!_mapFun.ContainsKey(key))
            {
                return;
            }

            _mapFun[key](node);
        }
Exemple #4
0
 public void RemoveAllNotificationEvent(NotificateMsgType key)
 {
     _mapFun[key] = null;
 }