/// <summary> /// Lua初始化及入口 /// </summary> private void OnInitialize() { Util.Log("Initialize OK!!!"); LuaManager.InitStart(); LuaManager.DoFile("Logic/GameManager"); //加载游戏 Util.CallMethod("GameManager", "OnInit"); //初始化Lua FrameWork并初始化配置管理等 UIManager.HideUI(DownloadView.Name); //关闭加载界面 }
static int DoFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.LuaManager obj = (Framework.LuaManager)ToLua.CheckObject <Framework.LuaManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.DoFile(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }