コード例 #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);
            }
        }
コード例 #2
0
    public static void TriggerEvent(string eventName, Hashtable hashtable)
    {
        HashtableEvent unityEvent = null;

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