Merge pull request #55 from AlanWeekend/main

修复demo流程的下载网速显示错误问题
This commit is contained in:
ALEXTANG
2023-10-30 23:48:17 +08:00
committed by GitHub

View File

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