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

PlaySound() public méthode

public PlaySound ( string name ) : void
name string
Résultat void
        public void PlaySound(string name)
        {
            var sndEffect = GetSound(name);
            if(sndEffect != null)
            {
                SoundEffectInstance soundInstance = sndEffect.CreateInstance();
                soundInstance.Volume = (float)Game.GameSettings.MasterVolume.Value / (float)100;
                soundInstance.Play();
            }
        }