This commit is contained in:
ALEXTANG
2023-05-09 21:02:24 +08:00
parent 878a05b614
commit 9016dd9e61
3 changed files with 16 additions and 7 deletions

View File

@@ -62,13 +62,16 @@ namespace GameMain
sizeMb = Mathf.Clamp(sizeMb, 0.1f, float.MaxValue);
_totalSizeMb = sizeMb.ToString("f1");
#if false
UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton,
LoadStyle.StyleEnum.Style_StartUpdate_Notice
, StartDownFile, Application.Quit);
#endif
RequestUpdateData().Forget();
if (SettingsUtils. EnableUpdateData())
{
UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton,
LoadStyle.StyleEnum.Style_StartUpdate_Notice
, StartDownFile, Application.Quit);
}
else
{
RequestUpdateData().Forget();
}
}
}