get by name

this.spawnEntity(EntityButton, 20, 170, {

img: "credits.png",

name: "creditsButton",

size: {

x: 77,

y: 32

}

});

var continueButton = this.getEntityByName("continueGameButton");

时间: 2024-12-29 11:36:01