private void ReadVolumes() { musicSlider.value = PrefsHolder.GetVolMusic(); sfxSlider.value = PrefsHolder.GetVolSfx(); }
public void SetMusicLevel(float musicLvl) { PrefsHolder.SaveVolMusic(musicLvl); masterMixer.SetFloat("volMusic", Mathf.Log10(PrefsHolder.GetVolMusic()) * 20f); }