25 lines
499 B
TypeScript
25 lines
499 B
TypeScript
|
|
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
|
||
|
|
}
|
||
|
|
|
||
|
|
public static getInstance(): UIManager {
|
||
|
|
return UIManager._instance
|
||
|
|
}
|
||
|
|
|
||
|
|
public loadStage(): void {
|
||
|
|
this.stage.onLoadStage("aBCeIGFhdEDFcAHBGIhigBdfecAgHDiFBCaeBEAGHCIdffcIdEAHbgcABfGEdiHIFHaCDGEBDGEHbiaFC");
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|