This commit is contained in:
2026-07-06 03:04:08 +08:00
parent f8202e44cc
commit 3bcfe13e62
14 changed files with 335 additions and 18 deletions
@@ -8,6 +8,7 @@ using UnityEngine.UI;
public class UIHome_BY_SettingPanel : SubUIBase
{
public Toggle toggle_SystemSetting;//默认打开系统设置界面
public Slider slider_AudioMusic;
public Slider slider_AudioEffect;
@@ -80,7 +81,11 @@ public class UIHome_BY_SettingPanel : SubUIBase
toggle_Fps60?.onValueChanged.AddListener(a => { if (a) SetFps(1); });
toggle_FpsUnlimited?.onValueChanged.AddListener(a => { if (a) SetFps(2); });
}
protected override void OnShow(object args = null)
{
base.OnShow(args);
toggle_SystemSetting.isOn = true;
}
private void CacheToggleColor(Toggle tg)
{
if (tg == null) return;