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