public bool Save()
        {
            if (!CheckChange())
            {
                return(false);
            }

            _model.CopyCount = _res;
            _model.IsSync    = _isSync;
            _model.Save();
            return(true);
        }
Beispiel #2
0
        public void savedSetting(GameObject setting)
        {
            SettingModel model = new SettingModel();

            model.quality    = setting.transform.Find("quality").GetChild(0).GetComponent <Dropdown>().value;
            model.mouse      = setting.transform.Find("mouseSpeed").GetChild(0).GetComponent <Slider>().value;
            model.sound      = setting.transform.Find("soundValue").GetChild(0).GetComponent <Slider>().value;
            model.music      = setting.transform.Find("musicValue").GetChild(0).GetComponent <Slider>().value;
            model.mute       = setting.transform.Find("mute").GetChild(0).GetComponent <Toggle>().isOn ? 1 : 0;
            model.fullscreen = setting.transform.Find("fullScreen").GetChild(0).GetComponent <Toggle>().isOn ? 1 : 0;

            model.Save();

            SettingService.SetSetting(model);

            setting.SetActive(false);
        }
 private void SaveBt_Click()
 {
     model.Save();
     WindowManageService.Close();
 }
Beispiel #4
0
 public void _onClickOverlayButton()
 {
     _Volumes.Save();
     OnBack();
 }