mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
add:初始化Package流程中增加webgl平台更新update配置
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user