Example #1
0
        public void SendToMsg(MsgBase msg)
        {
            ManagerBase baseManager = managerDict[msg.GetManager()];

            if (baseManager == null)
            {
                Debug.LogError("Manager不存在");
                return;
            }
            baseManager.ProcessEvent(msg);
        }
 static int ProcessEvent(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         U3DEventFrame.ManagerBase obj  = (U3DEventFrame.ManagerBase)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.ManagerBase));
         U3DEventFrame.MsgBase     arg0 = (U3DEventFrame.MsgBase)ToLua.CheckObject(L, 2, typeof(U3DEventFrame.MsgBase));
         obj.ProcessEvent(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }