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)) if (_fileSystem.CheckNeedDownload(_bundle))
{ {
DownloadProgress = 0f;
DownloadedBytes = 0;
_steps = ESteps.DownloadFile; _steps = ESteps.DownloadFile;
} }
else else
@ -219,8 +217,6 @@ namespace YooAsset
{ {
if (_fileSystem.CheckNeedDownload(_bundle)) if (_fileSystem.CheckNeedDownload(_bundle))
{ {
DownloadProgress = 0f;
DownloadedBytes = 0;
_steps = ESteps.DownloadFile; _steps = ESteps.DownloadFile;
} }
else else

View File

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

View File

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