public void AddEventListener(EventBase obj, EM_EventType type, Action <EventParm> action) { int key = GetDictKey(obj); if (dict.ContainsKey(key)) { dict[key].AddEventListener(type, action); } else { dict.Add(key, obj); obj.AddEventListener(type, action); } }