add:初始化Package流程中增加webgl平台更新update配置

This commit is contained in:
Weekend
2023-11-19 02:01:15 +08:00
parent 48ff839d64
commit 866c440479

View File

@@ -29,7 +29,8 @@ namespace GameMain
private async UniTaskVoid InitPackage(ProcedureOwner procedureOwner) private async UniTaskVoid InitPackage(ProcedureOwner procedureOwner)
{ {
if (GameModule.Resource.PlayMode == EPlayMode.HostPlayMode) if (GameModule.Resource.PlayMode == EPlayMode.HostPlayMode ||
GameModule.Resource.PlayMode == EPlayMode.WebPlayMode)
{ {
if (SettingsUtils.EnableUpdateData()) if (SettingsUtils.EnableUpdateData())
{ {
@@ -44,7 +45,8 @@ namespace GameMain
if (!string.IsNullOrEmpty(updateData.FallbackHostServerURL)) if (!string.IsNullOrEmpty(updateData.FallbackHostServerURL))
{ {
SettingsUtils.FrameworkGlobalSettings.FallbackHostServerURL = updateData.FallbackHostServerURL; SettingsUtils.FrameworkGlobalSettings.FallbackHostServerURL =
updateData.FallbackHostServerURL;
} }
} }
} }
@@ -107,7 +109,9 @@ namespace GameMain
// 打开启动UI。 // 打开启动UI。
UILoadMgr.Show(UIDefine.UILoadUpdate, $"资源初始化失败!"); UILoadMgr.Show(UIDefine.UILoadUpdate, $"资源初始化失败!");
UILoadTip.ShowMessageBox($"资源初始化失败!点击确认重试 \n \n <color=#FF0000>原因{initializationOperation.Error}</color>", MessageShowType.TwoButton, UILoadTip.ShowMessageBox(
$"资源初始化失败!点击确认重试 \n \n <color=#FF0000>原因{initializationOperation.Error}</color>",
MessageShowType.TwoButton,
LoadStyle.StyleEnum.Style_Retry LoadStyle.StyleEnum.Style_Retry
, () => { Retry(procedureOwner); }, UnityEngine.Application.Quit); , () => { Retry(procedureOwner); }, UnityEngine.Application.Quit);
} }