variable duplication fix
This commit is contained in:
@@ -66,7 +66,6 @@ class FreeplayState extends MusicBeatState
|
||||
// Updating Discord Rich Presence
|
||||
DiscordClient.changePresence("In the Menus", null);
|
||||
#end
|
||||
StoryMenuState.playStoryMode = false;
|
||||
|
||||
// LOAD CHARACTERS
|
||||
|
||||
|
||||
@@ -148,12 +148,7 @@ class PauseSubState extends MusicBeatSubstate
|
||||
case "Options":
|
||||
FlxG.switchState(new OptionsMenu(true));
|
||||
case "Exit to menu":
|
||||
if(StoryMenuState.playStoryMode){
|
||||
FlxG.switchState(new StoryMenuState());
|
||||
}
|
||||
else{
|
||||
FlxG.switchState(new FreeplayState());
|
||||
}
|
||||
FlxG.switchState(PlayState.isStoryMode ? new StoryMenuState() : new FreeplayState());
|
||||
FlxG.sound.playMusic(Paths.music('freakyMenu'));
|
||||
|
||||
}
|
||||
|
||||
@@ -43,12 +43,10 @@ class StoryMenuState extends MusicBeatState {
|
||||
public var characterSprites:FlxTypedGroup<MenuCharacterSprite>;
|
||||
|
||||
public var charFrames:Map<String, FlxFramesCollection> = [];
|
||||
public static var playStoryMode:Bool;
|
||||
|
||||
public override function create() {
|
||||
super.create();
|
||||
loadXMLs();
|
||||
StoryMenuState.playStoryMode = true;
|
||||
persistentUpdate = persistentDraw = true;
|
||||
|
||||
// WEEK INFO
|
||||
|
||||
Reference in New Issue
Block a user