예제 #1
0
        public IEffectController PlayPersistent(IEffectAudio effect, float volumeScale = 1f)
        {
            var controller = NextController(true);

            controller.MountAudio(effect);
            controller.Play();
            controller.SetVolume(baseVolume * volumeScale);
            return(controller);
        }
예제 #2
0
 /// <summary>
 /// Sets the specified effect audio to the table.
 /// </summary>
 public void SetSound(string lookupName, IEffectAudio audio) => sounds[lookupName] = audio;