Beispiel #1
0
 private void Start()
 {
     if (LuaCallCSharpMacro.IS_NEED_LOSD_USER_INFO() == false)                                   //不走userinfo
     {
         if (LuaCallCSharpMacro.RUN_IN_DOWNLOAD_RES() || LuaCallCSharpMacro.DOWNLOAD_TEMP_RES()) //去下载资源
         {
             XLuaManager.Instance.StartShowLoginView();
         }
         else
         {
             StartGame();
         }
     }
 }
Beispiel #2
0
    public void LoadCustomLua()
    {
        HasGameStart = false;

        if (LuaCallCSharpMacro.RUN_IN_DOWNLOAD_RES() == false && LuaCallCSharpMacro.DOWNLOAD_TEMP_RES() == false)//不走下载
        {
            YQPackageManagerEX.Instance.LoadLuaDataFromResource(FileManager.RemoveFileExtension(PathManager.needPackLuaName));
        }

        if (luaEnv != null)
        {
            luaEnv.AddLoader(CustomLoader);
        }
        else
        {
            UnityEngine.Debug.LogError("LoadCustomLua null!!!");
        }
    }