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

        music.SetMusic(settings.musicVolume);
        sound.SetSound(settings.sfxVolume);
        offset.SetOffset(settings.offset);
    }
示例#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
 }