9cac2d29502242d1cf18c9e620e909ecc709c4f6 1.0 KB

12345678
  1. {
  2. "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",
  3. "references": [
  4. "D:/GitProject/GunGang/gungang_laya/gungang/src/ui/layaMaxUI.ts",
  5. "D:/GitProject/GunGang/gungang_laya/gungang/src/GameLogic/EventManager.ts"
  6. ]
  7. }