1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user