补充积分逻辑

This commit is contained in:
2025-05-17 16:45:25 +08:00
parent 82cfa36e03
commit 3cf57b0fd2
3 changed files with 11 additions and 9 deletions

View File

@@ -120,15 +120,14 @@ export class Block extends Laya.Script {
public setShowNumber(showNumber: number): boolean {
this.data.set_show(showNumber)
// var score: number = 0
// if (this.newSelect) {
// this.newSelect = false
// if (this.data.get_checked()) {
// score = 150
// this.data.set_score(score)
// G_ShowScoreTips(score.toString(), this.label_show)
// }
// }
if (this.newSelect) {
this.newSelect = false
if (this.data.get_checked() && this.data.get_score() <= 0) {
var score = 150
this.data.set_score(score)
G_ShowScoreTips(score.toString(), this.label_show)
}
}
this.data.clean_notes()
this.updateBlock()
return this.data.get_checked()