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