Update ProcedureDownloadFile.cs

fixed:demo流程的下载网速错误显示问题
This commit is contained in:
Weekend
2023-10-30 23:04:01 +08:00
parent d9605b348a
commit 2c00d103cb

View File

@@ -13,10 +13,9 @@ namespace GameMain
private ProcedureOwner _procedureOwner; private ProcedureOwner _procedureOwner;
private float _currentDownloadTime;
private float CurrentSpeed => private float CurrentSpeed =>
(GameModule.Resource.Downloader.TotalDownloadBytes - (GameModule.Resource.Downloader.TotalDownloadBytes -
GameModule.Resource.Downloader.CurrentDownloadBytes) / _currentDownloadTime; GameModule.Resource.Downloader.CurrentDownloadBytes) / UnityEngine.Time.time;
protected override void OnEnter(ProcedureOwner procedureOwner) protected override void OnEnter(ProcedureOwner procedureOwner)
{ {