实现基本玩法
This commit is contained in:
24
src/models/UIManager.ts
Normal file
24
src/models/UIManager.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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");
|
||||
}
|
||||
|
||||
}
|
||||
3
src/models/UIManager.ts.meta
Normal file
3
src/models/UIManager.ts.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"uuid": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac"
|
||||
}
|
||||
Reference in New Issue
Block a user