计算积分
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user