update download system

优化资源文件下载流程。
This commit is contained in:
hevinci
2022-12-13 23:30:16 +08:00
parent 15a605b677
commit 7b9fda2298
5 changed files with 155 additions and 98 deletions

View File

@@ -6,9 +6,12 @@ namespace YooAsset
protected enum ESteps
{
None,
CheckLocalFile,
CreateDownload,
CheckTempFile,
PrepareDownload,
CreateResumeDownloader,
CreateGeneralDownloader,
CheckDownload,
VerifyDownload,
TryAgain,
Succeed,
Failed,
@@ -56,7 +59,7 @@ namespace YooAsset
{
_failedTryAgain = failedTryAgain;
_timeout = timeout;
_steps = ESteps.CheckLocalFile;
_steps = ESteps.CheckTempFile;
}
}
public abstract void Update();