Compilefehler behoben (String sollte Static sein)

This commit is contained in:
Wafa Sadri
2014-05-12 20:45:29 +02:00
parent 54e261d661
commit 9bc6107a74
2 changed files with 6 additions and 7 deletions

View File

@@ -82,7 +82,6 @@
<Compile Include="src\Gui\OnlinePlayerList.cs" /> <Compile Include="src\Gui\OnlinePlayerList.cs" />
<Compile Include="src\Gui\IPlayer.cs" /> <Compile Include="src\Gui\IPlayer.cs" />
<Compile Include="src\Music.cs" /> <Compile Include="src\Music.cs" />
<Compile Include="src\Gui\Splashscreen.cs" />
<Compile Include="src\Gui\Dummytile.cs" /> <Compile Include="src\Gui\Dummytile.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />

View File

@@ -5,12 +5,12 @@ namespace WorldOfPeacecraft
{ {
public class Music public class Music
{ {
string musicpath = "./music/"; private static string musicpath = "./music/";
string soundpath = "./sounds/"; private static string soundpath = "./sounds/";
SoundPlayer overworldplayer = new SoundPlayer(musicpath + "overworld.wav"); private SoundPlayer overworldplayer = new SoundPlayer(musicpath + "overworld.wav");
SoundPlayer minigameplayer = new SoundPlayer(musicpath + "minigame.wav"); private SoundPlayer minigameplayer = new SoundPlayer(musicpath + "minigame.wav");
SoundPlayer splashscreenplayer = new SoundPlayer (soundpath + "splashscreen.wav"); private SoundPlayer splashscreenplayer = new SoundPlayer (soundpath + "splashscreen.wav");
SoundPlayer walkplayer = new SoundPlayer(soundpath + "step.wav"); private SoundPlayer walkplayer = new SoundPlayer(soundpath + "step.wav");
public Music () public Music ()
{ {