mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-28 15:57:42 +00:00
menu back sounds on all menus
This commit is contained in:
parent
366b6242c0
commit
f7bb96c49c
|
@ -234,6 +234,7 @@ class FreeplayState extends MusicBeatState
|
|||
|
||||
if (controls.BACK)
|
||||
{
|
||||
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,10 @@ class Page extends FlxGroup
|
|||
function updateEnabled(elapsed:Float)
|
||||
{
|
||||
if (canExit && controls.BACK)
|
||||
{
|
||||
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
function set_enabled(value:Bool)
|
||||
|
|
Loading…
Reference in a new issue