static int _m_GetAssetBundleVer_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    string name = LuaAPI.lua_tostring(L, 1);

                    int __cl_gen_ret = BoyApp.GetAssetBundleVer(name);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #2
0
    IEnumerator LoadAssetBundleManifest()
    {
        string path = BoyApp.GetAssetBundlePath("AssetBundle");
        int    ver  = BoyApp.GetAssetBundleVer("AssetBundle");

        UnityWebRequest req = UnityWebRequest.GetAssetBundle(path, (uint)ver, 0);

        yield return(req.SendWebRequest());

        AssetBundle asset = DownloadHandlerAssetBundle.GetContent(req);

        BoyApp.manifestAssetBundle = asset;
        BoyApp.manifest            = asset.LoadAsset <AssetBundleManifest>("AssetBundleManifest");

        BoyApp.LoadAssetBundleAndAllDependencies("prefabs/loadingui", (System.Object loading) => {
            Instantiate(((AssetBundle)loading).LoadAsset("LoadingUI"));
        });
    }