예제 #1
0
        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));
            }
        }
예제 #2
0
 public void RegisterEvent <T>(T msgId, OnEvent process) where T : IConvertible
 {
     mEventSystem.Register(msgId, process);
 }