public IEffectController PlayPersistent(IEffectAudio effect, float volumeScale = 1f) { var controller = NextController(true); controller.MountAudio(effect); controller.Play(); controller.SetVolume(baseVolume * volumeScale); return(controller); }
/// <summary> /// Sets the specified effect audio to the table. /// </summary> public void SetSound(string lookupName, IEffectAudio audio) => sounds[lookupName] = audio;