//Call this function and pass in the float parameter sfxLevel to set the volume of the AudioMixerGroup SoundFx in mainMixer public void SetSfxLevel(float sfxLevel) { mainMixer.SetFloat("sfxVol", sfxLevel); FMOD_Volume.SetSFXVolume(sfxLevel); }
public AudioMixer mainMixer; //Used to hold a reference to the AudioMixer mainMixer //Call this function and pass in the float parameter musicLvl to set the volume of the AudioMixerGroup Music in mainMixer public void SetMusicLevel(float musicLvl) { FMOD_Volume.SetMusicVolume(musicLvl); }