update file system

pull/326/head
何冠峰 2024-07-04 22:55:58 +08:00
parent 9420f8561f
commit 02d70a476d
3 changed files with 2 additions and 8 deletions

View File

@ -31,8 +31,6 @@ namespace YooAsset
{
if (_fileSystem.CheckNeedDownload(_bundle))
{
DownloadProgress = 0f;
DownloadedBytes = 0;
_steps = ESteps.DownloadFile;
}
else
@ -219,8 +217,6 @@ namespace YooAsset
{
if (_fileSystem.CheckNeedDownload(_bundle))
{
DownloadProgress = 0f;
DownloadedBytes = 0;
_steps = ESteps.DownloadFile;
}
else

View File

@ -24,8 +24,6 @@ namespace YooAsset
}
internal override void InternalOnStart()
{
DownloadProgress = 0f;
DownloadedBytes = 0;
_steps = ESteps.DownloadFile;
}
internal override void InternalOnUpdate()

View File

@ -12,12 +12,12 @@ namespace YooAsset
/// <summary>
/// 下载进度
/// </summary>
public float DownloadProgress { protected set; get; }
public float DownloadProgress { protected set; get; } = 0;
/// <summary>
/// 下载大小
/// </summary>
public long DownloadedBytes { protected set; get; }
public long DownloadedBytes { protected set; get; } = 0;
/// <summary>
/// 终止下载任务