{
  "code": "import { ViewManager } from \"../Net/ViewManager\";\r\nimport { PlayerManager } from \"../Game/PlayerManager\";\r\nimport GuideView from \"../View/GuideView\";\r\nvar Input = Laya.Input;\r\nexport class GuideController {\r\n    constructor() {\r\n        this.guideonepos = new Laya.Vector3(2.5, 0, 59.4);\r\n        this.guidetwoPos = new Laya.Vector3(-5, 2, 104.4);\r\n        this.index = 0;\r\n        this._guide = false;\r\n    }\r\n    static get Instance() {\r\n        return this.instance || (this.instance = new GuideController());\r\n    }\r\n    GuideOn() {\r\n        if (this._guide) {\r\n            Laya.timer.once(500, this, this.Guide);\r\n        }\r\n    }\r\n    Guide() {\r\n        ViewManager.Instance.ShowGuideView();\r\n        if (GuideView.Instance) {\r\n            GuideView.Instance.SetGuide(1);\r\n        }\r\n    }\r\n    GuideOff() {\r\n        this._guide = false;\r\n        ViewManager.Instance.CloseGuideView();\r\n    }\r\n    GameOver() {\r\n        if (this._guide) {\r\n            ViewManager.Instance.CloseGuideView();\r\n        }\r\n    }\r\n    createInput() {\r\n        var inputText = new Input();\r\n        inputText.size(350, 100);\r\n        inputText.x = Laya.stage.width - inputText.width >> 1;\r\n        inputText.y = Laya.stage.height - inputText.height >> 1;\r\n        inputText.text = \"这段文本不可编辑，但可复制\";\r\n        inputText.editable = false;\r\n        inputText.bold = true;\r\n        inputText.bgColor = \"#666666\";\r\n        inputText.color = \"#ffffff\";\r\n        inputText.fontSize = 20;\r\n        Laya.stage.addChild(inputText);\r\n    }\r\n    InitGuide(p) {\r\n        if (this.index == 0) {\r\n            this.guideonepos.z = p;\r\n            this.index++;\r\n        }\r\n        else if (this.index == 1) {\r\n            this.guidetwoPos.z = p;\r\n            this.index++;\r\n        }\r\n    }\r\n    RequireGuide() {\r\n        let t = Laya.LocalStorage.getItem(\"guide\");\r\n        if (PlayerManager.Instance.stage == 1) {\r\n            Laya.LocalStorage.setItem(\"guide\", \"1\");\r\n            this._guide = true;\r\n            return true;\r\n        }\r\n        this._guide = false;\r\n        return false;\r\n    }\r\n}\r\n//# sourceMappingURL=GuideController.js.map",
  "references": [
    "C:/Users/admin/Desktop/？？/gungang/src/Net/ViewManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/PlayerManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/View/GuideView.ts"
  ],
  "map": "{\"version\":3,\"file\":\"GuideController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Manager/GuideController.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAQ,EAAC,WAAW,EAAY,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C,IAAO,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;AAK1B,MAAM,OAAQ,eAAe;IAA7B;QAMW,gBAAW,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;QAC7C,gBAAW,GAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,KAAK,CAAC,CAAA;QA+CvC,UAAK,GAAC,CAAC,CAAC;QAWT,WAAM,GAAG,KAAK,CAAC;IAW1B,CAAC;IA1EU,MAAM,KAAK,QAAQ;QACtB,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC,CAAC;IACpE,CAAC;IAKM,OAAO;QACV,IAAI,IAAI,CAAC,MAAM,EAAE;YACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C;IACL,CAAC;IAED,KAAK;QACD,WAAW,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QACrC,IAAG,SAAS,CAAC,QAAQ,EAAC;YAClB,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,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