Esempio n. 1
0
    //

    //Event functions
    public void DispatchEvent <T>(Solitaire.Event eventId, string key, T data)
    {
        EventParam param = new EventParam();

        param.EventID = (int)eventId;
        param.Add <string>("tag", key);
        param.Add <T>(key, data);
        EventManager.Instance.RaiseEvent(eventId, param);
    }
Esempio n. 2
0
    public void RaiseEvent(Solitaire.Event eventId, EventParam param)
    {
        int index = (int)eventId;

        m_EventList[index].Raise(param);
    }
Esempio n. 3
0
    public void Unregister(Solitaire.Event eventId, UnityAction <EventParam> callback)
    {
        int index = (int)eventId;

        m_EventList[index].Unresigter(callback);
    }