Ballz.Sound.SoundControl.GetSound C# (CSharp) Méthode

GetSound() public méthode

public GetSound ( string name ) : SoundEffect
name string
Résultat Microsoft.Xna.Framework.Audio.SoundEffect
        public SoundEffect GetSound(string name)
        {
            if (!SoundsEnabled)
                return null;

            SoundEffect sound;
            if(!loadedSounds.TryGetValue(name, out sound))
                sound = LoadSound(name);

            return sound;
        }