{
  "code": "import { MouseEvent } from \"./MouseEvent\";\r\nimport { MoundManager } from \"../Manager/MoundManager\";\r\nimport StreetManager from \"../Manager/StreetManager\";\r\nimport { MateManager } from \"../Manager/MateManager\";\r\nimport { MainRoleManager } from \"../Manager/MainRoleManager\";\r\nimport { RoleManager } from \"../Manager/RoleManager\";\r\nimport { ViewManager, ViewType } from \"../Net/ViewManager\";\r\nimport { CameraManager } from \"../Manager/CameraManager\";\r\nimport { CameraState } from \"./Camera\";\r\nimport { Scene3DManager } from \"./Scene3DManager\";\r\nimport { PlayerManager } from \"./PlayerManager\";\r\nimport { DispatcherManager, EventType } from \"./DispatcherManager\";\r\nimport { WXSdk } from \"../Net/WXSdk\";\r\nimport { GuideController } from \"../Manager/GuideController\";\r\nimport { GuangGao } from \"../Net/GuangGao\";\r\nexport class GameManager {\r\n    constructor() {\r\n        this.towerCount = 0;\r\n        this.roleCount = 0;\r\n        this.blockCount = 0;\r\n    }\r\n    static get Instance() {\r\n        return GameManager.instance || (GameManager.instance = new GameManager());\r\n    }\r\n    Start() {\r\n        this.towerCount = 0;\r\n        this.roleCount = 0;\r\n        this.blockCount = 0;\r\n    }\r\n    Win() {\r\n        WXSdk.LongVibrate();\r\n        ViewManager.Instance.AddView(ViewType.CompleteView, true);\r\n        MoundManager.Instance.Reset();\r\n        StreetManager.Instance.Reset();\r\n        MateManager.Instance.Reset();\r\n        MainRoleManager.Instance.Reset();\r\n        RoleManager.Instance.Reset();\r\n    }\r\n    Congratulate(isglod = false) {\r\n        MainRoleManager.Instance.GoToTiaoWu();\r\n        if (isglod)\r\n            MateManager.Instance.TiaoWu1();\r\n        else\r\n            MateManager.Instance.TiaoWu();\r\n        CameraManager.Instance.SetCameraAction(CameraState.jump, 0.03);\r\n        Laya.timer.once(4000, this, this.Win);\r\n    }\r\n    Over() {\r\n        GuideController.Instance.GameOver();\r\n        MouseEvent.Instance.OnClickUp();\r\n        MainRoleManager.Instance.CreateOver();\r\n        MouseEvent.Instance._Switch = false;\r\n        WXSdk.LongVibrate();\r\n        GuangGao.Clear();\r\n        ViewManager.Instance.AddView(ViewType.CompleteView, false);\r\n        MoundManager.Instance.Reset();\r\n        StreetManager.Instance.Reset();\r\n        MateManager.Instance.Reset();\r\n        MainRoleManager.Instance.Reset();\r\n        MainRoleManager.Instance.HidePlayer();\r\n        RoleManager.Instance.Reset();\r\n    }\r\n    loadUI() {\r\n        Laya.loader.load([\"res/threeDimen/ui/button.png\"], Laya.Handler.create(this, function () {\r\n            this.changeActionButton = Laya.stage.addChild(new Laya.Button(\"res/threeDimen/ui/button.png\", \"切换Mesh\"));\r\n            this.changeActionButton.size(160, 40);\r\n            this.changeActionButton.labelBold = true;\r\n            this.changeActionButton.labelSize = 30;\r\n            this.changeActionButton.sizeGrid = \"4,4,4,4\";\r\n            this.changeActionButton.scale(Laya.Browser.pixelRatio, Laya.Browser.pixelRatio);\r\n            this.changeActionButton.pos(Laya.stage.width / 2 - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio);\r\n            this.changeActionButton.on(Laya.Event.CLICK, this, function () {\r\n                this.index++;\r\n                if (this.index % 5 === 1) {\r\n                    this.sphere.meshFilter.sharedMesh = this.box;\r\n                }\r\n                else if (this.index % 5 === 2) {\r\n                    this.sphere.meshFilter.sharedMesh = this.capsule;\r\n                }\r\n                else if (this.index % 5 === 3) {\r\n                    this.sphere.meshFilter.sharedMesh = this.cylinder;\r\n                }\r\n                else if (this.index % 5 === 3) {\r\n                    this.sphere.meshFilter.sharedMesh = this.cone;\r\n                }\r\n                else {\r\n                    this.sphere.meshFilter.sharedMesh = this.sphereMesh;\r\n                }\r\n            });\r\n        }));\r\n    }\r\n    Near() {\r\n        MoundManager.Instance.Reset();\r\n        StreetManager.Instance.Reset();\r\n    }\r\n    ReStart() {\r\n        MateManager.Instance.Reset();\r\n        Scene3DManager.Instance.InItScene();\r\n        DispatcherManager.event(EventType.Event.ShowMainUi);\r\n        DispatcherManager.event(EventType.Event.SetStagePro, 0);\r\n    }\r\n    LevelUp() {\r\n        PlayerManager.Instance.stage++;\r\n        Scene3DManager.Instance.InItScene();\r\n        ViewManager.Instance.CloseView(ViewType.CompleteView);\r\n        DispatcherManager.event(EventType.Event.ShowMainUi);\r\n        DispatcherManager.event(EventType.Event.SetStage);\r\n        DispatcherManager.event(EventType.Event.SetStagePro, 0);\r\n    }\r\n}\r\nGameManager.GameNum = 0;\r\n//# sourceMappingURL=GameManager.js.map",
  "references": [
    "C:/Users/admin/Desktop/？？/gungang/src/Game/MouseEvent.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/MoundManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/StreetManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/MateManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/MainRoleManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/RoleManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Net/ViewManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/CameraManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/Camera.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/Scene3DManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/PlayerManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/DispatcherManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Net/WXSdk.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/GuideController.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Net/GuangGao.ts"
  ],
  "map": "{\"version\":3,\"file\":\"GameManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Game/GameManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AACrD,OAAO,aAAa,M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