| System/AssetVersion/InGameDownTestUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/ClientVersion/VersionConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/AssetVersion/InGameDownTestUtility.cs
@@ -15,12 +15,34 @@ public static bool isWifi { get { return LocalSave.GetBool("InGameDownLoadWifi", true); } set { LocalSave.SetBool("InGameDownLoadWifi", value); } } public static bool isPartPackage { get { return LocalSave.GetBool("InGameDownLoadPartPackage", false); } set { LocalSave.SetBool("InGameDownLoadPartPackage", value); } } public static void ClearAssets() { Directory.Delete(Application.persistentDataPath, true); LocalSave.DeleteKey("HasDownLoadFullAsset"); } } #if UNITY_EDITOR [RuntimeInitializeOnLoadMethod] public static void Init() { if (InGameDownTestUtility.enable) { VersionConfig.Get().assetAccess = InstalledAsset.NullAsset; } else { VersionConfig.Get().assetAccess = InstalledAsset.IngoreDownLoad; } VersionConfig.Get().partAssetPackage = InGameDownTestUtility.isPartPackage; } #endif } System/ClientVersion/VersionConfig.cs
@@ -28,10 +28,10 @@ public int branch { get { return m_Branch; } } [SerializeField] InstalledAsset m_AssetAccess = InstalledAsset.IngoreDownLoad; public InstalledAsset assetAccess { get { return m_AssetAccess; } } public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } } [SerializeField] bool m_PartAssetPackage = false; public bool partAssetPackage { get { return m_PartAssetPackage; } } public bool partAssetPackage { get { return m_PartAssetPackage; } set { m_PartAssetPackage = value; } } [SerializeField] string m_ProductName = string.Empty; public string productName { get { return m_ProductName; } }