console logs n stuff

This commit is contained in:
James Diefenbach 2024-09-09 12:05:32 +10:00
parent 93d6375894
commit 2e5cf7dd63
3 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,7 @@ export class EggLapsePhase extends Phase {
showSummary() {
this.scene.unshiftPhase(new EggSummaryPhase(this.scene, this.eggHatchData));
this.end();
console.log("end of lapse phase");
}
/**

View File

@ -44,7 +44,10 @@ export class EggSummaryPhase extends Phase {
end() {
this.eggHatchHandler.clear();
this.scene.ui.setModeForceTransition(Mode.MESSAGE).then(() => {});
this.scene.ui.setModeForceTransition(Mode.MESSAGE).then(() => {
console.log("ui transitioned");
});
console.log("phase ending");
this.scene.time.delayedCall(250, () => this.scene.setModifiersVisible(true));
super.end();
}

View File

@ -251,6 +251,7 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
let success = false;
const error = false;
console.log("processing input" + button);
if (button === Button.CANCEL) {
const phase = this.scene.getCurrentPhase();
if (phase instanceof EggSummaryPhase) {