예제 #1
0
 private void ClickSave(IUIObject obj)
 {
     TsQualityManager.Instance.SaveCustomSettings();
     EAudioType[] array  = Enum.GetValues(typeof(EAudioType)) as EAudioType[];
     EAudioType[] array2 = array;
     for (int i = 0; i < array2.Length; i++)
     {
         EAudioType eAudioType = array2[i];
         if (eAudioType < EAudioType.TOTAL)
         {
             float value;
             bool  flag;
             if (eAudioType == EAudioType.BGM || eAudioType == EAudioType.BGM_STREAM)
             {
                 value = this.m_BgmSound.Value;
                 flag  = this.m_MuteBgm.IsChecked();
                 UIDataManager.MuteBGM = flag;
             }
             else
             {
                 value = this.m_EffectSound.Value;
                 flag  = this.m_MuteEffect.IsChecked();
                 UIDataManager.MuteEffect = flag;
             }
             TsAudio.SetVolumeOfAudioType(eAudioType, value);
             TsAudio.SetMuteAudioType(eAudioType, flag);
         }
     }
     TsAudio.SavePlayerPrefs();
     this.SaveCameraRotate();
     this.SaveFps();
     if (this.tabIndex == 8)
     {
         this.SavePushSetting(null);
     }
     this.SaveVibeSetting();
     this.CloseForm(null);
 }