public void Register <T>(T key, OnEvent l) where T : IConvertible { if (m_DataList == null) { m_DataList = new List <EventRegisterUnit>(); } if (m_EventSystem.Register(key, l)) { m_DataList.Add(new EventRegisterUnit(key.ToInt32(null), l)); } }
public void RegisterEvent <T>(T msgId, OnEvent process) where T : IConvertible { mEventSystem.Register(msgId, process); }