public void RemoveEventHandler(int eventId, int id) { if (eventId < 0 || eventId >= m_data.events.Length) { return; } EventHandlerDictionary dict = m_eventHandlers[eventId]; if (dict == null) { return; } dict.Remove(id); }
public void RemoveEventHandler(string eventName, int id) { int eventId = SearchEventId(eventName); if (eventId >= 0 && eventId < m_data.events.Length) { RemoveEventHandler(eventId, id); } else { EventHandlerDictionary dict = m_genericEventHandlerDictionary[eventName]; if (dict == null) { return; } dict.Remove(id); } }
public void ClearEventHandler(string eventName) { m_eventHandlers.Remove(eventName); }