{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { PlayerManager } from \"../Manager/PlayerManager\";\r\nimport { AccountManager } from \"../NetWork/AccountManager\";\r\nimport { DispatcherManager, StageState } from \"../GameUtils/EventManager\";\r\nexport class InGameView extends ui.InGameViewUI {\r\n    constructor() {\r\n        super();\r\n        InGameView.ins = this;\r\n    }\r\n    static get Instance() {\r\n        if (InGameView.ins == null) {\r\n            return new InGameView();\r\n        }\r\n        return InGameView.ins;\r\n    }\r\n    OnShow() {\r\n        console.log(\"游戏界面\");\r\n        this.on(Laya.Event.MOUSE_DOWN, this, this.ClickStart);\r\n        this.RefreshUI();\r\n        this.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n        });\r\n        DispatcherManager.StageOn(StageState.RefreshPro, this, this.SetProValue);\r\n        DispatcherManager.StageOn(StageState.ShowGuide1, this, this.ShowGuide1);\r\n        DispatcherManager.StageOn(StageState.HideGuide1, this, this.HideGuide1);\r\n        DispatcherManager.StageOn(StageState.ShowGuide2, this, this.ShowGuide2);\r\n        DispatcherManager.StageOn(StageState.HideGuide2, this, this.HideGuide2);\r\n    }\r\n    ClickStart() {\r\n        this.off(Laya.Event.MOUSE_DOWN, this, this.ClickStart);\r\n    }\r\n    RefreshUI() {\r\n        let stage = Number(AccountManager.Instance.curplayerData.GainAccount(\"stage\")) + 1;\r\n        this.NowLevelNum.text = stage + \"\";\r\n    }\r\n    SetProValue(data) {\r\n        this.jindupro.value = data[\"pre\"];\r\n        this.CountTxt.text = \"小人数量：\" + (Number(data[\"count\"]) + 1);\r\n    }\r\n    ShowGuide1() {\r\n        this.GuideBox1.visible = true;\r\n        Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.HideGuide1);\r\n    }\r\n    HideGuide1() {\r\n        this.GuideBox1.visible = false;\r\n        Laya.stage.off(Laya.Event.MOUSE_DOWN, this, this.HideGuide1);\r\n        PlayerManager.Instance.Resume();\r\n        PlayerManager.Instance.ListenOn();\r\n    }\r\n    ShowGuide2() {\r\n        this.GuideBox2.visible = true;\r\n        this.guideclick1.play(null, true);\r\n    }\r\n    HideGuide2() {\r\n        this.GuideBox2.visible = false;\r\n        this.guideclick1.stop();\r\n    }\r\n    OnHide() {\r\n        DispatcherManager.StageOff(StageState.RefreshPro, this, this.SetProValue);\r\n        DispatcherManager.StageOff(StageState.ShowGuide1, this, this.ShowGuide1);\r\n        DispatcherManager.StageOff(StageState.HideGuide1, this, this.HideGuide1);\r\n        DispatcherManager.StageOff(StageState.ShowGuide2, this, this.ShowGuide2);\r\n        DispatcherManager.StageOff(StageState.HideGuide2, this, this.HideGuide2);\r\n    }\r\n}\r\n//# sourceMappingURL=InGameView.js.map",
  "references": [
    "E:/LayaProject/DanceLine/RubikCube/src/ui/layaMaxUI.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/Manager/PlayerManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/NetWork/AccountManager.ts",
    "E:/LayaProject/DanceLine/RubikCube/src/GameUtils/EventManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"InGameView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/InGameView.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC1E,MAAM,OAAO,UAAW,SAAQ,EAAE,CAAC,YAAY;IAE3C;QACI,KAAK,EAAE,CAAC;QACR,UAAU,CAAC,GAAG,GAAG,IAAI,CAAC;IAC1B,CAAC;IACM,MAAM,KAAK,QAAQ;QACtB,IAAG,UAAU,CAAC,GAAG,IAAI,IAAI,EAAC;YACtB,OAAO,IAAI,UAAU,EAAE,CAAC;S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