计算积分

This commit is contained in:
2025-05-22 17:17:47 +08:00
parent 2bf07ab8f6
commit b3681e5c1e
19 changed files with 41383 additions and 378 deletions

View File

@@ -29,8 +29,6 @@ export class DOBlock {
public set_show(show: number): void {
this.data.show = show
this.checked = show == this.get_correct()
if (this.checked == false)
this.set_score(0)
StorageManager.getInstance().onStageChanged()
}

View File

@@ -126,6 +126,14 @@ export class DOStage {
StorageManager.getInstance().onStageChanged()
}
public get_last_hit_time(): number {
return this.data.last_hit_time
}
public set_last_hit_time(last_hit_time: number): void {
this.data.last_hit_time = last_hit_time
StorageManager.getInstance().onStageChanged()
}
public get_note_open(): boolean {
return this.data.note_open
}

View File

@@ -5,6 +5,7 @@ import { DailyChallenge } from "../views/DailyChallenge"
import { TrophyRecord } from "../types/global"
import { TrophyClaim } from "../views/TrophyClaim"
import { TrophyShow } from "../views/TrophyShow"
import { config } from "../constants/config"
const { regClass, property } = Laya
@@ -76,7 +77,7 @@ export class UIManager extends Laya.Script {
this.stage.onLoadStage(StorageManager.getInstance().loadStage(stageID))
}
else {
Laya.loader.load(respath.stage_ui_res).then((go)=>{
Laya.loader.load(respath.stage_ui_res()).then((go)=>{
var prefab = go.create()
this.stage = this.getUIRoot().addChild(prefab).getComponent(Stage)
this.stage.onLoadStage(StorageManager.getInstance().loadStage(stageID))