#Time

this.time.delayedCall(300, () => { // 300 utime
});
this.time.addEvent({
    delay: 500,
    callbackScope: this,
    callback: () => {
        this.createBox(Phaser.Math.Between(100, this.canvas.width - 100), -100, Phaser.Math.Between(20, 80), Phaser.Math.Between(20, 80), true);
        this.tick ++;
        // if(this.tick == 100){
        //     this.scene.start("PlayGame");
        // }
    },
    loop: true
});

Table of contents 목차

    평점을 남겨주세요
    평점 : 2.5
    총 투표수 : 1