mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 08:20:18 +00:00
update file system
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -24,8 +24,6 @@ namespace YooAsset
|
||||
}
|
||||
internal override void InternalOnStart()
|
||||
{
|
||||
DownloadProgress = 0f;
|
||||
DownloadedBytes = 0;
|
||||
_steps = ESteps.DownloadFile;
|
||||
}
|
||||
internal override void InternalOnUpdate()
|
||||
|
||||
@@ -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>
|
||||
/// 终止下载任务
|
||||
|
||||
Reference in New Issue
Block a user