1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-23 05:37:38 +00:00

[BUGFIX] Fixed cancelMenu sound not playing after switching state.

This commit is contained in:
AppleHair 2024-07-09 19:59:31 +03:00 committed by EliteMasterEric
parent 242ab6e922
commit 34a19ef583
3 changed files with 3 additions and 3 deletions

View file

@ -412,8 +412,8 @@ class MainMenuState extends MusicBeatState
if (controls.BACK && menuItems.enabled && !menuItems.busy)
{
FunkinSound.playOnce(Paths.sound('cancelMenu'));
FlxG.switchState(() -> new TitleState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}
}
}

View file

@ -145,8 +145,8 @@ class Page extends FlxGroup
{
if (canExit && controls.BACK)
{
FunkinSound.playOnce(Paths.sound('cancelMenu'));
exit();
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}
}

View file

@ -390,9 +390,9 @@ class StoryMenuState extends MusicBeatState
if (controls.BACK && !exitingMenu && !selectedLevel)
{
FunkinSound.playOnce(Paths.sound('cancelMenu'));
exitingMenu = true;
FlxG.switchState(() -> new MainMenuState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}
}