From 25d1e32ce9d7d9efffe6de8b6bbf5f749e53e1f7 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 15 May 2023 15:34:49 +0800 Subject: [PATCH] update asset system --- .../YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs | 1 + .../YooAsset/Runtime/AssetSystem/Loader/AssetBundleWebLoader.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs index 9de9906..4d6fd7d 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs @@ -103,6 +103,7 @@ namespace YooAsset else { _steps = ESteps.LoadFile; + return; //下载完毕等待一帧再去加载! } } diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleWebLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleWebLoader.cs index f3fedb5..2f96992 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleWebLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleWebLoader.cs @@ -92,6 +92,7 @@ namespace YooAsset else { _steps = ESteps.LoadCacheFile; + return; //下载完毕等待一帧再去加载! } }