少年修仙传客户端基础资源
hch
2024-05-17 0dbb961d8dc9a7fe65021916760c2d9eb8194972
Assets/Launch/ResourcesModel.cs
@@ -5,6 +5,7 @@
using LitJsonForAot;
using System.Collections;
using UnityEngine.Networking;
using StartAotSDK;
namespace StartAot
@@ -25,7 +26,7 @@
        public bool isPCTestDownLoad = false;
        public static readonly string[] VERSION_URL = new string[] {
        "http://yncenter.secondworld.net.cn:11000/center/appversion_new.php/?"};
        "http://vncenter.daojmengxvn.com:11000/center/appversion_new.php/?"};
        public int debugBranch { get; private set; }
@@ -157,8 +158,8 @@
        {
            spriteBundle?.Unload(true);  //true完全卸载,更新后重新加载
            prefabBundle?.Unload(true);
            assetVersions.Clear();
            localAssetVersions.Clear();
            assetVersions = null;
            localAssetVersions = null;
            Debug.Log("提前ResourcesModel.Destroy资源");
        }
@@ -193,6 +194,7 @@
                if (VersionConfigEx.Get().assetAccess == VersionConfigEx.InstalledAsset.IngoreDownLoad)
                {
                    assetVersions = localAssetVersions;
                    step = LoadDllStep.ReadBytes;
                    return;
                }
@@ -438,7 +440,7 @@
                    if (isOK)
                        InitLocalLogicbytes(value);
                    else
                        Debug.LogError("InitTable logicbytes error");
                        Debug.LogWarning("InitTable logicbytes error");
                }, StreamingAssetPath));
            }
        }
@@ -457,6 +459,7 @@
                    try
                    {
                        var assetVersion = new AssetVersion(line);
                        assetVersion.localValid = true;
                        localAssetVersions[assetVersion.relativePath] = assetVersion;
                    }
                    catch (System.Exception ex)