mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
simplify
This commit is contained in:
@@ -151,10 +151,7 @@ public class DuelScene extends ForgeScene {
|
|||||||
}
|
}
|
||||||
Runnable endRunnable = null;
|
Runnable endRunnable = null;
|
||||||
void afterGameEnd(String enemyName, boolean winner) {
|
void afterGameEnd(String enemyName, boolean winner) {
|
||||||
if (winner)
|
Forge.restrictAdvMenus = winner;
|
||||||
Forge.restrictAdvMenus = true;
|
|
||||||
else
|
|
||||||
Forge.restrictAdvMenus = false;
|
|
||||||
endRunnable = () -> Gdx.app.postRunnable(()-> {
|
endRunnable = () -> Gdx.app.postRunnable(()-> {
|
||||||
if (GameScene.instance().isNotInWorldMap()) {
|
if (GameScene.instance().isNotInWorldMap()) {
|
||||||
SoundSystem.instance.pause();
|
SoundSystem.instance.pause();
|
||||||
|
|||||||
Reference in New Issue
Block a user