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:
@@ -65,10 +65,20 @@ namespace AOT.Boot
|
||||
|
||||
_view?.SetProgress(1f);
|
||||
_view?.SetStatus("热更已启动");
|
||||
Debug.Log($"[Boot] OK app={ctx.AppVersion} res={ctx.ResVersion} cdn={ctx.CdnRoot}");
|
||||
Debug.Log($"[Boot] OK app={ctx.AppVersion} res={ctx.ResVersion} pack={ctx.PackVersion} cdn={ctx.CdnRoot}");
|
||||
|
||||
// 让热更侧完成首帧生成后再撤掉全屏启动遮罩
|
||||
yield return null;
|
||||
// Prefabs/atlases load asynchronously; two frames are not a readiness guarantee.
|
||||
_view?.SetStatus("加载主界面…");
|
||||
float uiDeadline = Time.realtimeSinceStartup + 120f;
|
||||
while (!ctx.MainUiReady && string.IsNullOrEmpty(ctx.MainUiError) && Time.realtimeSinceStartup < uiDeadline)
|
||||
yield return null;
|
||||
if (!ctx.MainUiReady)
|
||||
{
|
||||
string uiError = ctx.MainUiError ?? "主界面加载超时,请检查 Art 资源包后重试";
|
||||
_view?.SetError(uiError);
|
||||
Debug.LogError("[Boot] " + uiError);
|
||||
yield break;
|
||||
}
|
||||
yield return null;
|
||||
_view?.Hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user