12345678 |
- {
- "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { EventManager } from \"../GameLogic/EventManager\";\r\nexport default class GameUi extends ui.GameUiUI {\r\n static get Instance() {\r\n return GameUi.instance;\r\n }\r\n constructor() {\r\n super();\r\n GameUi.instance = this;\r\n this.resizeHander();\r\n EventManager.on(Laya.Event.RESIZE, this, this.resizeHander);\r\n }\r\n OnShow(data) {\r\n this.InitDate();\r\n this.InitHandler();\r\n this.InitUi();\r\n }\r\n resizeHander() {\r\n this.height = Laya.stage.height;\r\n }\r\n InitDate() {\r\n }\r\n InitHandler() {\r\n }\r\n InitUi() {\r\n }\r\n OnClose() {\r\n EventManager.off(Laya.Event.RESIZE, this, this.resizeHander);\r\n GameUi.instance = null;\r\n Laya.timer.clearAll(this);\r\n }\r\n}\r\n",
- "references": [
- "D:/GitProject/GunGang/gungang_laya/gungang/src/ui/layaMaxUI.ts",
- "D:/GitProject/GunGang/gungang_laya/gungang/src/GameLogic/EventManager.ts"
- ]
- }
|