PlaneFight
PlaneFight
开始学习
public AddBomb() {
this.bombNumber++;
this.node.emit("onBombChange", this.bombNumber);
}
GameManager.getInstance().node.on("onBombChange",this.onBombChange,this)
onBombChange(bombNumer:number) {
console.log("onBombChange");
this.numberLabel.string = GameManager.getInstance().GetBombeNumber().toString();
}