// //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); }
public void RaiseEvent(Solitaire.Event eventId, EventParam param) { int index = (int)eventId; m_EventList[index].Raise(param); }
public void Unregister(Solitaire.Event eventId, UnityAction <EventParam> callback) { int index = (int)eventId; m_EventList[index].Unresigter(callback); }