Phaser3 点击事件
let over = this.add.text(0, 0, '重新开始')
over.setInteractive()
over.on('pointerdown', function (pointer) {
this.score = 0
this.scene.start('PlayGame')
}, this)
Phaser3 点击事件
let over = this.add.text(0, 0, '重新开始')
over.setInteractive()
over.on('pointerdown', function (pointer) {
this.score = 0
this.scene.start('PlayGame')
}, this)