Exemple #1
0
        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);
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public void ClearEventHandler(string eventName)
 {
     m_eventHandlers.Remove(eventName);
 }