@@ -29,7 +29,8 @@ protected override void OnEnter(ProcedureOwner procedureOwner)
29
29
30
30
private async UniTaskVoid InitPackage ( ProcedureOwner procedureOwner )
31
31
{
32
- if ( GameModule . Resource . PlayMode == EPlayMode . HostPlayMode )
32
+ if ( GameModule . Resource . PlayMode == EPlayMode . HostPlayMode ||
33
+ GameModule . Resource . PlayMode == EPlayMode . WebPlayMode )
33
34
{
34
35
if ( SettingsUtils . EnableUpdateData ( ) )
35
36
{
@@ -44,7 +45,8 @@ private async UniTaskVoid InitPackage(ProcedureOwner procedureOwner)
44
45
45
46
if ( ! string . IsNullOrEmpty ( updateData . FallbackHostServerURL ) )
46
47
{
47
- SettingsUtils . FrameworkGlobalSettings . FallbackHostServerURL = updateData . FallbackHostServerURL ;
48
+ SettingsUtils . FrameworkGlobalSettings . FallbackHostServerURL =
49
+ updateData . FallbackHostServerURL ;
48
50
}
49
51
}
50
52
}
@@ -60,9 +62,9 @@ private async UniTaskVoid InitPackage(ProcedureOwner procedureOwner)
60
62
{
61
63
//热更新阶段文本初始化
62
64
LoadText . Instance . InitConfigData ( null ) ;
63
-
65
+
64
66
GameEvent . Send ( RuntimeId . ToRuntimeId ( "RefreshVersion" ) ) ;
65
-
67
+
66
68
EPlayMode playMode = GameModule . Resource . PlayMode ;
67
69
68
70
// 编辑器模式。
@@ -107,7 +109,9 @@ private async UniTaskVoid InitPackage(ProcedureOwner procedureOwner)
107
109
// 打开启动UI。
108
110
UILoadMgr . Show ( UIDefine . UILoadUpdate , $ "资源初始化失败!") ;
109
111
110
- UILoadTip . ShowMessageBox ( $ "资源初始化失败!点击确认重试 \n \n <color=#FF0000>原因{ initializationOperation . Error } </color>", MessageShowType . TwoButton ,
112
+ UILoadTip . ShowMessageBox (
113
+ $ "资源初始化失败!点击确认重试 \n \n <color=#FF0000>原因{ initializationOperation . Error } </color>",
114
+ MessageShowType . TwoButton ,
111
115
LoadStyle . StyleEnum . Style_Retry
112
116
, ( ) => { Retry ( procedureOwner ) ; } , UnityEngine . Application . Quit ) ;
113
117
}
0 commit comments