Пример #1
0
 void OnInitialize()
 {
     LuaManager.InitStart();
     //LuaManager.DoFile("Logic/Network");      //加载网络
     //NetManager.OnInit();                     //初始化网络
     LuaManager.StartMain();
     initialize = true;
 }
 static int StartMain(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.LuaManager obj = (LuaFramework.LuaManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.LuaManager));
         obj.StartMain();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }