diff --git a/DangerousD/GameCore/Managers/SoundManager.cs b/DangerousD/GameCore/Managers/SoundManager.cs index 86e6282..2ffba1e 100644 --- a/DangerousD/GameCore/Managers/SoundManager.cs +++ b/DangerousD/GameCore/Managers/SoundManager.cs @@ -24,10 +24,12 @@ namespace DangerousD.GameCore } } - public void StartSound(string soundName) // запустить звук у которого нет позиции + public void StartSound(string soundName, bool isMusic) // запустить звук у которого нет позиции { var sound = new Sound(Sounds[soundName]); sound.SoundEffect.IsLooped = false; + if (isMusic) + sound.SoundEffect.IsLooped = true; sound.SoundEffect.Play(); PlayingSounds.Add(sound); }