/// <summary> /// call to trigger the event /// </summary> public static void TriggerEvent(string eventName, Hashtable eventParams = default(Hashtable)) { HashtableEvent thisEvent = null; if (Instance.EventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(eventParams); } }
public static void TriggerEvent(string eventName, Hashtable hashtable) { HashtableEvent unityEvent = null; if (instance.eventDictionary.TryGetValue(eventName, out unityEvent)) { unityEvent.Invoke(hashtable); } }