Add touch support to character customization screen

This commit is contained in:
¯\_(ツ)_/¯
2021-02-20 20:22:43 +01:00
committed by PizZaKatZe
parent e807350279
commit aab65298aa
2 changed files with 91 additions and 2 deletions
@@ -206,6 +206,10 @@ export class SelectCharacterScene extends AbstractCharacterScene {
this.customizeButton.setInteractive().on("pointerdown", () => {
this.selectedRectangleYPos = Math.ceil(this.playerModels.length / this.nbCharactersPerRow);
this.updateSelectedPlayer();
this.nextScene();
});
this.customizeButtonSelected.setInteractive().on("pointerdown", () => {
this.nextScene();
});
this.selectedPlayer = this.players[0];