From f4a3fcece8b0def7d7cfd1340d76766868f7cbdf Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 13 Dec 2022 11:46:39 +0800 Subject: [PATCH] Fixed #54 --- .../Runtime/AssetSystem/Provider/BundledAssetProvider.cs | 2 +- .../Runtime/AssetSystem/Provider/BundledSubAssetsProvider.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledAssetProvider.cs b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledAssetProvider.cs index c009c62..56bd186 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledAssetProvider.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledAssetProvider.cs @@ -90,7 +90,6 @@ namespace YooAsset // 3. 检测加载结果 if (Status == EStatus.Checking) { - Progress = _cacheRequest.progress; if (_cacheRequest != null) { if (IsWaitForAsyncComplete) @@ -101,6 +100,7 @@ namespace YooAsset } else { + Progress = _cacheRequest.progress; if (_cacheRequest.isDone == false) return; AssetObject = _cacheRequest.asset; diff --git a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledSubAssetsProvider.cs b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledSubAssetsProvider.cs index b10807f..800a548 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledSubAssetsProvider.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledSubAssetsProvider.cs @@ -79,7 +79,6 @@ namespace YooAsset // 3. 检测加载结果 if (Status == EStatus.Checking) { - Progress = _cacheRequest.progress; if (_cacheRequest != null) { if (IsWaitForAsyncComplete) @@ -90,6 +89,7 @@ namespace YooAsset } else { + Progress = _cacheRequest.progress; if (_cacheRequest.isDone == false) return; AllAssetObjects = _cacheRequest.allAssets;