static public void playMusic(string Music, float Volume) { if (music == null) { music = new FlxSound(); } else if (music.active) { music.stop(); } music.loadEmbedded(Music, true); music.volume = Volume; music.survive = true; music.play(); }
public static void playMusic(string Music, float Volume) { if(music == null) music = new FlxSound(); else if(music.active) music.stop(); music.loadEmbedded(Music,true); music.volume = Volume; music.survive = true; music.play(); }