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:
parent
242ab6e922
commit
34a19ef583
|
@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,8 +145,8 @@ class Page extends FlxGroup
|
|||
{
|
||||
if (canExit && controls.BACK)
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
exit();
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue