Files
sudoku/src/models/UIManager.ts

27 lines
572 B
TypeScript
Raw Normal View History

2025-05-09 19:10:40 +08:00
import { Stage } from "../views/Stage"
const { regClass, property } = Laya
@regClass()
export class UIManager extends Laya.Script {
@property(Stage)
public stage: Stage
private static _instance: UIManager
onAwake(): void {
UIManager._instance = this
2025-05-12 10:43:02 +08:00
this.stage.owner.visible = false
2025-05-09 19:10:40 +08:00
}
public static getInstance(): UIManager {
return UIManager._instance
}
public loadStage(): void {
2025-05-12 10:43:02 +08:00
this.stage.owner.visible = true
2025-05-09 19:10:40 +08:00
this.stage.onLoadStage("aBCeIGFhdEDFcAHBGIhigBdfecAgHDiFBCaeBEAGHCIdffcIdEAHbgcABfGEdiHIFHaCDGEBDGEHbiaFC");
}
}