Example #1
0
    void Start()
    {
        settings = Settings.LoadSettings();

        music.SetMusic(settings.musicVolume);
        sound.SetSound(settings.sfxVolume);
        offset.SetOffset(settings.offset);
    }
Example #2
0
 private void Start()
 {
     userSetting                 = Setting.LoadSettings();
     universalOffset             = userSetting.offset;
     music.outputAudioMixerGroup = musicMixer;
     sfx.outputAudioMixerGroup   = sfxMixer;
     // Set music and sfx volume according to user setting
 }
Example #3
0
 public void SaveData()
 {
     Settings.SaveSettings(settings);
 }