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