| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | using UI.RoleInfo;using System.Text.RegularExpressions;namespace GFGGame{    public class SettingView : BaseWindow    {        private UI_SettingUI _ui;        public override void Dispose()        {            if (_ui != null)            {                _ui.Dispose();                _ui = null;            }            base.Dispose();        }        protected override void OnInit()        {            base.OnInit();            packageName = UI_SettingUI.PACKAGE_NAME;            _ui = UI_SettingUI.Create();            this.viewCom = _ui.target;            this.viewCom.Center();            this.modal = true;            _ui.m_btnExit.onClick.Add(OnClickBtnExit);            _ui.m_btnLogout.onClick.Add(OnClickBtnLogout);            _ui.m_btnSound.onClick.Add(OnClickBtnSound);            _ui.m_btnMusic.onClick.Add(OnClickBtnMusic);        }        protected override void OnShown()        {            base.OnShown();        }        protected override void OnHide()        {            base.OnHide();        }        private void OnClickBtnExit()        {            AlertSystem.Show("횅훰럿쀼되쩌女찐?")                .SetLeftButton(true)                .SetRightButton(true, "횅훰", (object data) =>                {                    GameController.QuitToLoginView(false);                });        }        private void OnClickBtnLogout()        {            AlertSystem.Show("횅훰鬧饋뎠품瑯뵀찐?")                .SetLeftButton(true)                .SetRightButton(true, "횅훰", (object data) =>                {                    GameController.QuitToLoginView(true);                });        }        private void OnClickBtnSound()        {            SoundManager.Instance.isOn = _ui.m_btnSound.selected;        }        private void OnClickBtnMusic()        {            MusicManager.Instance.isOn = _ui.m_btnMusic.selected;        }    }}
 |