public void SetSfxVolume() { audioSettings.SfxVolume = Mathf.RoundToInt(sfxVolumeView.VolumeSlider.normalizedValue * 100); sfxVolumeView.SetVolumeText("Sfx", audioSettings.SfxVolume); }
public void SetMusicVolume() { audioSettings.MusicVolume = Mathf.RoundToInt(musicVolumeView.VolumeSlider.normalizedValue * 100); musicVolumeView.SetVolumeText("Music", audioSettings.MusicVolume); }