diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/DownloaderOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/DownloaderOperation.cs index 6f8909a..8aea98b 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/DownloaderOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/DownloaderOperation.cs @@ -208,12 +208,18 @@ namespace YooAsset { if (_bundleInfoList != null) { + TotalDownloadBytes = 0; TotalDownloadCount = _bundleInfoList.Count; foreach (var packageBundle in _bundleInfoList) { TotalDownloadBytes += packageBundle.Bundle.FileSize; } } + else + { + TotalDownloadBytes = 0; + TotalDownloadCount = 0; + } } /// @@ -255,7 +261,7 @@ namespace YooAsset // 重新统计下载信息 CalculatDownloaderInfo(); } - + /// /// 开始下载 ///