Example #1
0
    //--End Int Event methods--

    //Int Int based event setup
    public static void StartListeningTypeIntInt(string eventName, UnityAction <int, int> listener)
    {
        UnityIntIntEvent thisEvent = null;

        if (instance.intIntEventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.AddListener(listener);
        }
        else
        {
            thisEvent = new UnityIntIntEvent();
            thisEvent.AddListener(listener);
            instance.intIntEventDictionary.Add(eventName, thisEvent);
        }
    }