Update PauseSubState.hx

This commit is contained in:
trayfellouch 2021-07-13 13:03:27 +07:00 committed by GitHub
parent c69e83d8e0
commit 73d9a899e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,8 @@ class PauseSubState extends MusicBeatSubstate
function changeSelection(change:Int = 0):Void
{
curSelected += change;
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
if (curSelected < 0)
curSelected = menuItems.length - 1;
@ -287,4 +289,4 @@ class PauseSubState extends MusicBeatSubstate
}
}
}
}
}