|
@@ -27,7 +27,7 @@ export default class UIRank extends cc.Component {
|
|
|
|
|
|
start () {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
protected onEnable(): void {
|
|
|
this.closeBtn.node.on('click',this.closeEvent,this)
|
|
@@ -45,11 +45,11 @@ export default class UIRank extends cc.Component {
|
|
|
CCUtils.getLabel(node, 'score').string = gameModel.historyScores[i - 1].toString();
|
|
|
CCUtils.getLabel(node, 'name').string = Utiles.random(1, 20).toString();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
CCUtils.getLabel(this.node, 'tcBg/goatLabel').string = 'Highest score: ' + maxNum.toString();
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
protected onDisable(): void {
|
|
|
this.closeBtn.node.off('click',this.closeEvent,this)
|
|
|
}
|