完善每日挑战逻辑

This commit is contained in:
2025-05-21 10:15:23 +08:00
parent 061b8bc042
commit 2e384f43e4
17 changed files with 450 additions and 158 deletions

View File

@@ -1,6 +1,7 @@
import { respath } from "../constants/respath"
import { StorageManager } from "./StorageManager"
import { Stage } from "../views/Stage"
import { DailyChallenge } from "../views/DailyChallenge"
const { regClass, property } = Laya
@@ -39,7 +40,8 @@ export class UIManager extends Laya.Script {
public loadDCUI(): void {
Laya.loader.load(respath.dc_ui_res).then((go)=>{
var prefab = go.create()
this.getUIRoot().addChild(prefab)
var dc = this.getUIRoot().addChild(prefab).getComponent(DailyChallenge)
dc.loadWithMonth()
})
}