Close battle map menu with escape

This commit is contained in:
2026-07-05 03:22:02 +09:00
parent 47c1a1fadd
commit a4bb358c2f

View File

@@ -3176,6 +3176,12 @@ export class BattleScene extends Phaser.Scene {
return;
}
if (this.mapMenuObjects.length > 0) {
soundDirector.playSelect();
this.hideMapMenu();
return;
}
this.cancelAttackTargeting();
});
this.input.keyboard?.on('keydown-SPACE', (event: KeyboardEvent) => {