Beispiel #1
0
 public void SetVolume()
 {
     Debug.Log("Setting volume: " + VolumeSlider.value);
     PlayerPrefs.SetFloat("volume", VolumeSlider.value);
     GlobalGameValues.SetVolume(VolumeSlider.value);
 }
Beispiel #2
0
 public void Start()
 {
     Debug.Log("Menu start, volume: " + PlayerPrefs.GetFloat("volume"));
     GlobalGameValues.SetVolume(PlayerPrefs.GetFloat("volume"));
 }