fix:1、多语言bug修复

This commit is contained in:
2026-07-14 14:13:52 +08:00
parent 49d65c1fdc
commit 110660f299
15 changed files with 86 additions and 70 deletions
@@ -53,6 +53,13 @@ namespace RedHotRoast
protected override void OnOpenBefore(object args)
{
var lang = PlayerPrefsKit.ReadString("LangIdKey");
if (lang.IsNullOrWhiteSpace())
{
lang = "en";
}
UIManager.Instance.SetSwitchLanguage(lang);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenBgUI_Open);
ui.com_pb.max = 100;
ui.com_pb.value = 0;