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

            _mapFun[key](node);
        }
Exemplo n.º 4
0
 public void RemoveAllNotificationEvent(NotificateMsgType key)
 {
     _mapFun[key] = null;
 }