【启动流程】增加版本关闭判断

main
刘涛 2026-04-23 14:59:47 +08:00
parent f354089889
commit 350bffbaed
5 changed files with 17 additions and 4 deletions

View File

@ -217,6 +217,16 @@ public class GameLauncher : MonoBehaviour
return;
}
if (PreConfig.instance.isVersionClosed)
{
// 版本已关闭
Debug.Log("[GameLauncher] 版本已关闭");
await versionUpdateUI.ShowDialog(LocalizeMono.Instance.GetLocalizeText("Tip"),
LocalizeMono.Instance.GetLocalizeText("VersionClosed")); // 配置文件错误
TempUpdateUI.Instance.OnClickCancel();
return;
}
await YooAssetHelper.Init();
_simpleLoader = new SimpleLoader_YooAsset();

@ -1 +1 @@
Subproject commit 9358cff34f717f4fa2256894f6312e70cbfe4c64
Subproject commit 0682b3eedcf56c2bfb7bc8b94ca93ebcc3248313

View File

@ -30,6 +30,7 @@
"NewResVersionInfo": "最新资源版本:{0}",
"Downloading": "正在下载更新包...{0}",
"OK": "确定",
"Cancel": "取消"
"Cancel": "取消",
"VersionClosed": "当前版本已关闭, 敬请等待新版本"
}
}

View File

@ -30,6 +30,7 @@
"NewResVersionInfo": "最新资源版本:{0}",
"Downloading": "正在下载更新包...{0}",
"OK": "确定",
"Cancel": "取消"
"Cancel": "取消",
"VersionClosed": "当前版本已关闭, 敬请等待新版本"
}
}

View File

@ -30,6 +30,7 @@
"NewResVersionInfo": "Latest resource version{0}",
"Downloading": "Downloading the update package now...{0}",
"OK": "Confirm",
"Cancel": "Cancel"
"Cancel": "Cancel",
"VersionClosed": "当前版本已关闭, 敬请等待新版本"
}
}