From 9107490279dadc5837414579e6d1985158633e4f Mon Sep 17 00:00:00 2001 From: MARKPRO44 <119742977+MARKPRO4444@users.noreply.github.com> Date: Sat, 17 Aug 2024 12:21:00 +0300 Subject: [PATCH] Sounds --- ZoFo/GameCore/GameManagers/SoundManager.cs | 2 +- ZoFo/GameCore/Graphics/AnimationBuilder.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ZoFo/GameCore/GameManagers/SoundManager.cs b/ZoFo/GameCore/GameManagers/SoundManager.cs index b4c4263..5f39e97 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/GameCore/Graphics/AnimationBuilder.cs b/ZoFo/GameCore/Graphics/AnimationBuilder.cs index 04b2cbf..a7f6214 100644 --- a/ZoFo/GameCore/Graphics/AnimationBuilder.cs +++ b/ZoFo/GameCore/Graphics/AnimationBuilder.cs @@ -13,7 +13,7 @@ namespace DangerousD.GameCore.Graphics public void LoadAnimations() { Animations = new List(); - string[] animationFilesNames = Directory.GetFiles("../../../Content/Textures/Animations"); + string[] animationFilesNames = Directory.GetFiles("Content/Textures/Animations"); StreamReader reader; foreach (var fileName in animationFilesNames)