Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
    public static void TriggerEvent(string eventName, Hashtable hashtable)
    {
        HashtableEvent unityEvent = null;

        if (instance.eventDictionary.TryGetValue(eventName, out unityEvent))
        {
            unityEvent.Invoke(hashtable);
        }
    }