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

PlaySound() 공개 메소드

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