Esempio n. 1
0
    public void TriggerEvent(string eventName, object obj)
    {
        GeneralEvent thisEvent = null;

        if (eventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.Invoke(obj);
        }
    }
Esempio n. 2
0
    public static void TriggerEvent(int eventName, GeneralData generalData)
    {
        GeneralEvent thisEvent = null;

        if (instance.eventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.Invoke(generalData);
        }
    }