diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs index 4d6fd7d..bc9819b 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs @@ -110,7 +110,7 @@ namespace YooAsset // 3. 内置文件解压 if (_steps == ESteps.Unpack) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _unpacker = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckUnpack; diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs index b7ee11a..6c8d5bf 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs @@ -91,7 +91,7 @@ namespace YooAsset // 3. 解压内置文件 if (_steps == ESteps.Unpack) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _unpacker = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckUnpack; diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs index b5513d6..5d6356f 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs @@ -89,7 +89,7 @@ namespace YooAsset // 3. 从站点下载 if (_steps == ESteps.Website) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _website = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckWebsite;