public void SetSoundParameter(SoundParameterHandle handle, float value, GameObject obj) { switch (handle) { case SoundParameterHandle.Distance: AkSoundEngine.SetRTPCValue("distanceToCharacter", value, obj); break; case SoundParameterHandle.MasterVolume: AkSoundEngine.SetRTPCValue("masterVolume", value, obj); break; case SoundParameterHandle.MusicVolume: AkSoundEngine.SetRTPCValue("musicVolume", value, obj); break; case SoundParameterHandle.SoundVolume: Debug.Log(string.Format("Sound Volume set to: {0} (But doesn't work!)", value)); break; default: throw new System.Exception("Enum variant doesn't exist, update SetSoundParameter method (AudioManager.cs)"); } }
public void SetSoundParameter(SoundParameterHandle handle, float value) { SetSoundParameter(handle, value, gameObject); }
public static void SetSoundParameter(SoundParameterHandle handle, float value) { audioManager.SetSoundParameter(handle, value); }
public static void SetSoundParameter(SoundParameterHandle handle, float value, GameObject obj) { audioManager.SetSoundParameter(handle, value, obj); }