public bool UnRegisterHandler(E_EntityEvent key, EventSet <E_EntityEvent, EventSetData> .EventHandler handler, I_Condition condition = null) { if (condition != null) { _conditionSet.Remove(key); } return(_target.UnRegisterHandler(key, handler)); }
public bool UnRegisterHandler(TKey key, EventSet <TKey, EventSetData> .EventHandler handler, I_Condition condition = null) { if (_conditionSet.ContainsKey(key)) { _conditionSet.Remove(key); } return(_eventSet.UnRegisterHandler(key, handler)); }
public bool UnRegisterHandler(E_BuffEvent key, EventSet <E_BuffEvent, EventSetData> .EventHandler handler, I_Condition condition = null) { return(_buffEventSet.UnRegisterHandler(key, handler, condition)); }
public bool RegisterHandler(TKey key, EventSet <TKey, EventSetData> .EventHandler handler, I_Condition condition = null) { if (condition != null) { _conditionSet.Add(key, condition); } return(_eventSet.RegisterHandler(key, handler)); }