public void TriggerEvent(string eventName, object obj) { GeneralEvent thisEvent = null; if (eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(obj); } }
public static void TriggerEvent(int eventName, GeneralData generalData) { GeneralEvent thisEvent = null; if (instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(generalData); } }