Exemplo n.º 1
0
 /// <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 HideUI(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.UIManager obj = (Framework.UIManager)ToLua.CheckObject <Framework.UIManager>(L, 1);
         string arg0             = ToLua.CheckString(L, 2);
         obj.HideUI(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }