mirror of https://github.com/tuyoogame/YooAsset
update file system
parent
9420f8561f
commit
02d70a476d
|
@ -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>
|
||||
/// 终止下载任务
|
||||
|
|
Loading…
Reference in New Issue