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