using CG.Framework; using CG.UTility; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /******************************************************************************* *Create By CG *Function *******************************************************************************/ namespace ZXK.GYJQR { public class AppSettingPanel : UIBase { private Slider _voiceSlider = null; private Slider _flexibleSlider = null; private Button _voiceAdd_N = null; private Button _voiceSub_N = null; private Button _flexibleAdd_N = null; private Button _flexibleSub_N = null; protected override void Awake() { base.Awake(); } private void Start() { AddEventListener("SettingBtn_N", UIEventType.OnToggleValueChanged, (bool isOn)=> { GetWedage("SettingContain_N").gameObject.SetActive(isOn); if (Camera.main.GetComponent()) Camera.main.GetComponent()._AllForbid = isOn; if (Camera.main.GetComponent()) Camera.main.GetComponent()._AllForbid = isOn; UI_Manage.Instance.GetPanel("AppSettingPanel").transform.SetAsLastSibling(); CG.UTility.PopUpMng._TriAble = false; }); AddEventListener("CloseBtn_N", UIEventType.OnButtonClick, () => { GetWedage("SettingContain_N").gameObject.SetActive(false); if (Camera.main.GetComponent()) Camera.main.GetComponent()._AllForbid = false; if (Camera.main.GetComponent()) Camera.main.GetComponent()._AllForbid = false; CG.UTility.PopUpMng._TriAble = true; }); AddEventListener("ReturnBtn_N", UIEventType.OnButtonClick, ReturnExit); _voiceSlider = GetWedage("VoiceSlider_N").GetComponent(); _flexibleSlider=GetWedage("FlexibleSlider_N").GetComponent(); _voiceAdd_N = GetWedage("VoiceAdd_N").GetComponent