Beispiel #1
0
 private void Awake()
 {
     //set slider values to current volumes upon loading scene
     musicVolumeSlider.value = PlayerPrefsController.GetMasterMusicVolume();
     sFXVolumeSlider.value   = PlayerPrefsController.GetMasterSFXVolume();
 }
Beispiel #2
0
 private void Start()
 {
     audioSource        = GetComponent <AudioSource>();
     audioSource.volume = PlayerPrefsController.GetMasterMusicVolume();
     LevelMusic();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     volumeSlider.value = PlayerPrefsController.GetMasterMusicVolume();
 }