示例#1
0
        void Awake()
        {
            Instance = this;
            managerDict.Add(ManagerID.UIManager, gameObject.AddComponent <UIManager> ());
            managerDict.Add(ManagerID.NPCManager, gameObject.AddComponent <NPCManager>());
            managerDict.Add(ManagerID.NetManager, gameObject.AddComponent <NetManager>());
            managerDict.Add(ManagerID.AudioManager, gameObject.AddComponent <AudioManager>());
            managerDict.Add(ManagerID.AssetManager, gameObject.AddComponent <AssetManager>());

            gameObject.AddComponent <LuaEventProcess>();
        }
示例#2
0
 static int set_instance(IntPtr L)
 {
     try
     {
         U3DEventFrame.MsgCenter arg0 = (U3DEventFrame.MsgCenter)ToLua.CheckUnityObject(L, 2, typeof(U3DEventFrame.MsgCenter));
         U3DEventFrame.MsgCenter.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int SendToMsg(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         U3DEventFrame.MsgCenter obj  = (U3DEventFrame.MsgCenter)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.MsgCenter));
         U3DEventFrame.MsgBase   arg0 = (U3DEventFrame.MsgBase)ToLua.CheckObject(L, 2, typeof(U3DEventFrame.MsgBase));
         obj.SendToMsg(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }