Ship the WeChat hot-update catalogs and the camp, TideWhale T2, UI atlas, and animation-lab work.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,18 +31,6 @@ namespace HotUpdate.Gameplay
|
||||
{
|
||||
WireNet();
|
||||
StartCoroutine(EnsureUi());
|
||||
|
||||
var plaza = gameObject.AddComponent<TownSquareSpawner>();
|
||||
plaza.Bind(_ctx);
|
||||
StartCoroutine(SpawnWorld(plaza));
|
||||
}
|
||||
|
||||
System.Collections.IEnumerator SpawnWorld(TownSquareSpawner plaza)
|
||||
{
|
||||
yield return plaza.SpawnCo();
|
||||
var spawner = gameObject.AddComponent<CharacterSpawner>();
|
||||
spawner.Bind(_ctx);
|
||||
spawner.Spawn();
|
||||
}
|
||||
|
||||
System.Collections.IEnumerator EnsureUi()
|
||||
@@ -57,6 +45,11 @@ namespace HotUpdate.Gameplay
|
||||
_hud = hudGo != null ? hudGo.GetComponent<MainHudView>() : null;
|
||||
if (_hud == null && hudGo != null)
|
||||
_hud = hudGo.AddComponent<MainHudView>();
|
||||
if (_hud == null)
|
||||
{
|
||||
if (_ctx != null) _ctx.MainUiError = "主界面资源加载失败,请检查 Art 资源包";
|
||||
yield break;
|
||||
}
|
||||
_hud?.Bind();
|
||||
_hud?.SetStatus(_maintenanceLock ? "服务器维护中" : FriendlyStatus(_net?.Status));
|
||||
_hud?.SetPid(_net?.Session?.Pid ?? 0);
|
||||
@@ -66,6 +59,8 @@ namespace HotUpdate.Gameplay
|
||||
_hud.OnReconnectClicked += () => _net?.RequestReconnect();
|
||||
_hud.OnHomeActionClicked += ShowHomeFeature;
|
||||
}
|
||||
if (_ctx != null) _ctx.MainUiReady = true;
|
||||
Debug.Log("[UI] Main HUD ready");
|
||||
|
||||
GameObject dlgGo = null;
|
||||
yield return mgr.OpenAsync(ConfirmDialogView.PrefabName, go => dlgGo = go);
|
||||
|
||||
Reference in New Issue
Block a user