fix pause sound bug

This commit is contained in:
RandomityGuy 2024-06-11 18:10:22 +05:30
parent 21bd713203
commit 33a85c97a1
2 changed files with 1 additions and 2 deletions

View file

@ -284,6 +284,7 @@ class MarbleGame {
Console.log("Game paused");
world.setCursorLock(false);
@:privateAccess world.playGui.setGuiVisibility(false);
AudioManager.playSound(ResourceLoader.getAudio('data/sound/level_text.wav').resource);
showPauseUI();
} else {
if (world._ready) {

View file

@ -19,8 +19,6 @@ class ExitGameDlg extends GuiImage {
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
super(res);
AudioManager.playSound(ResourceLoader.getResource('data/sound/level_text.wav', ResourceLoader.getAudio, this.soundResources));
this.horizSizing = Width;
this.vertSizing = Height;
this.position = new Vector();