mirror of https://github.com/tuyoogame/YooAsset
parent
6dd1f43445
commit
d4fcb868d8
|
@ -208,12 +208,18 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (_bundleInfoList != null)
|
if (_bundleInfoList != null)
|
||||||
{
|
{
|
||||||
|
TotalDownloadBytes = 0;
|
||||||
TotalDownloadCount = _bundleInfoList.Count;
|
TotalDownloadCount = _bundleInfoList.Count;
|
||||||
foreach (var packageBundle in _bundleInfoList)
|
foreach (var packageBundle in _bundleInfoList)
|
||||||
{
|
{
|
||||||
TotalDownloadBytes += packageBundle.Bundle.FileSize;
|
TotalDownloadBytes += packageBundle.Bundle.FileSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TotalDownloadBytes = 0;
|
||||||
|
TotalDownloadCount = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -255,7 +261,7 @@ namespace YooAsset
|
||||||
// 重新统计下载信息
|
// 重新统计下载信息
|
||||||
CalculatDownloaderInfo();
|
CalculatDownloaderInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 开始下载
|
/// 开始下载
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue