From 9bc6107a7471ffcbb7b7341868a2e62d8ee729fd Mon Sep 17 00:00:00 2001 From: Wafa Sadri Date: Mon, 12 May 2014 20:45:29 +0200 Subject: [PATCH] Compilefehler behoben (String sollte Static sein) --- inf3.csproj | 1 - src/Music.cs | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/inf3.csproj b/inf3.csproj index a6d77c0..6064735 100644 --- a/inf3.csproj +++ b/inf3.csproj @@ -82,7 +82,6 @@ - diff --git a/src/Music.cs b/src/Music.cs index 7a84c87..bc108d6 100644 --- a/src/Music.cs +++ b/src/Music.cs @@ -5,12 +5,12 @@ namespace WorldOfPeacecraft { public class Music { - string musicpath = "./music/"; - string soundpath = "./sounds/"; - SoundPlayer overworldplayer = new SoundPlayer(musicpath + "overworld.wav"); - SoundPlayer minigameplayer = new SoundPlayer(musicpath + "minigame.wav"); - SoundPlayer splashscreenplayer = new SoundPlayer (soundpath + "splashscreen.wav"); - SoundPlayer walkplayer = new SoundPlayer(soundpath + "step.wav"); + private static string musicpath = "./music/"; + private static string soundpath = "./sounds/"; + private SoundPlayer overworldplayer = new SoundPlayer(musicpath + "overworld.wav"); + private SoundPlayer minigameplayer = new SoundPlayer(musicpath + "minigame.wav"); + private SoundPlayer splashscreenplayer = new SoundPlayer (soundpath + "splashscreen.wav"); + private SoundPlayer walkplayer = new SoundPlayer(soundpath + "step.wav"); public Music () {