完善每日挑战逻辑
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user