From 34fbd7f67e0ca9ec1816466c439651cd7cbd9c39 Mon Sep 17 00:00:00 2001 From: MARKPRO44 <119742977+MARKPRO4444@users.noreply.github.com> Date: Sat, 17 Aug 2024 12:12:51 +0300 Subject: [PATCH] Sounds --- GameSettings.txt | 1 + ZoFo/GameCore/GameManagers/SoundManager.cs | 2 +- ZoFo/GameSettings.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 GameSettings.txt create mode 100644 ZoFo/GameSettings.txt diff --git a/GameSettings.txt b/GameSettings.txt new file mode 100644 index 0000000..f5dcd93 --- /dev/null +++ b/GameSettings.txt @@ -0,0 +1 @@ +{"IsFullScreen":false,"MainVolume":1.0,"MusicVolume":1.0,"SoundEffectsVolume":1.0,"Resolution":{"X":1440,"Y":900}} \ No newline at end of file diff --git a/ZoFo/GameCore/GameManagers/SoundManager.cs b/ZoFo/GameCore/GameManagers/SoundManager.cs index 0494dae..ed07d2a 100644 --- a/ZoFo/GameCore/GameManagers/SoundManager.cs +++ b/ZoFo/GameCore/GameManagers/SoundManager.cs @@ -20,7 +20,7 @@ namespace ZoFo.GameCore.GameManagers public void LoadSounds() // метод для загрузки звуков из папки { - var k = Directory.GetFiles("../../..//Content//sounds").Where(x => x.EndsWith("wav")); + var k = Directory.GetFiles("../../..//Content/sounds").Where(x => x.EndsWith("wav")); if (k.Count() > 0) { diff --git a/ZoFo/GameSettings.txt b/ZoFo/GameSettings.txt new file mode 100644 index 0000000..f5dcd93 --- /dev/null +++ b/ZoFo/GameSettings.txt @@ -0,0 +1 @@ +{"IsFullScreen":false,"MainVolume":1.0,"MusicVolume":1.0,"SoundEffectsVolume":1.0,"Resolution":{"X":1440,"Y":900}} \ No newline at end of file