update asset system

修复了通过Handle句柄查询资源包下载进度为零的问题。
This commit is contained in:
hevinci
2023-01-31 18:14:03 +08:00
parent f620223613
commit 423655e1ca

View File

@@ -48,7 +48,7 @@ namespace YooAsset
result.TotalSize += (ulong)dependBundle.MainBundleInfo.Bundle.FileSize;
result.DownloadedBytes += dependBundle.DownloadedBytes;
}
result.Progress = result.DownloadedBytes / result.TotalSize;
result.Progress = (float)result.DownloadedBytes / result.TotalSize;
return result;
}