diff --git a/src/MarbleGame.hx b/src/MarbleGame.hx index 2a822d08..bdc51359 100644 --- a/src/MarbleGame.hx +++ b/src/MarbleGame.hx @@ -289,6 +289,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) { diff --git a/src/gui/ExitGameDlg.hx b/src/gui/ExitGameDlg.hx index ba2af01d..a5297019 100644 --- a/src/gui/ExitGameDlg.hx +++ b/src/gui/ExitGameDlg.hx @@ -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();