public void RemoveEventHandler(string eventName, EventHandler eventHandler) { EventHandlerList list = m_eventHandlers[eventName]; if (list == null) { return; } list.RemoveAll(h => h == eventHandler); }
public void RemoveEventHandler(int eventId, EventHandler eventHandler) { if (eventId < 0 || eventId >= m_data.events.Length) { return; } EventHandlerList list = m_eventHandlers[eventId]; if (list == null) { return; } list.RemoveAll(h => h == eventHandler); }
public void RemoveEventHandler(string eventName, EventHandler eventHandler) { int eventId = SearchEventId(eventName); if (eventId >= 0 && eventId < m_data.events.Length) { RemoveEventHandler(eventId, eventHandler); } else { EventHandlerList list = m_genericEventHandlerDictionary[eventName]; if (list == null) { return; } list.RemoveAll(h => h == eventHandler); } }