Esempio n. 1
0
 /// <summary>
 /// Plays a sound effect with 3D attenuation. The listener is the player(usually) and the emitter is what generates the sound.
 /// </summary>
 public static void PlaySoundEffect(string cueName, Vector2 listenerPosition, Vector2 emitterPosition)
 {
     CorvSoundEffectCue cue = new CorvSoundEffectCue(_Instance.SoundBank.GetCue(cueName), listenerPosition, emitterPosition);
     cue.Play();
 }
Esempio n. 2
0
        /// <summary>
        /// Plays a sound effect.
        /// </summary>
        public static void PlaySoundEffect(string cueName)
        {
            if (string.IsNullOrEmpty(cueName))
                return;

            //might want to add some sort of sound manager
            CorvSoundEffectCue cue = new CorvSoundEffectCue(_Instance.SoundBank.GetCue(cueName));
            cue.Play();
        }