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>
|
||||||
|
|
Loading…
Reference in New Issue