update check

This commit is contained in:
Anthony Calosa
2023-03-21 17:39:00 +08:00
parent 3632e37acc
commit 92c6bd1365

View File

@@ -141,11 +141,11 @@ public class DuelScene extends ForgeScene {
void afterGameEnd(String enemyName, boolean winner, boolean showOverlay, boolean alternate) { void afterGameEnd(String enemyName, boolean winner, boolean showOverlay, boolean alternate) {
Runnable runnable = () -> Gdx.app.postRunnable(()-> { Runnable runnable = () -> Gdx.app.postRunnable(()-> {
if (this.isArena) { if (GameScene.instance().isNotInWorldMap()) {
SoundSystem.instance.pause(); SoundSystem.instance.pause();
GameHUD.getInstance().playAudio(); GameHUD.getInstance().playAudio();
} else { } else {
SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS); //start background music SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS);
SoundSystem.instance.resume(); SoundSystem.instance.resume();
} }
dungeonEffect = null; dungeonEffect = null;