mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update ProcedureDownloadFile.cs
fixed:demo流程的下载网速错误显示问题
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user