Ballz.Sound.SoundControl.GetSound C# (CSharp) 메소드

GetSound() 공개 메소드

public GetSound ( string name ) : SoundEffect
name string
리턴 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;
        }