{
  "code": "var Vector3 = Laya.Vector3;\r\nimport { GamePool } from \"../Game/GamePool\";\r\nimport { PlayerManager } from \"../Game/PlayerManager\";\r\nimport { MathTool } from \"../Util/MathTool\";\r\nimport { MusicType } from \"../Game/ColliderAndMusicType\";\r\nexport class DisplayerCarController {\r\n    static get Instance() {\r\n        return DisplayerCarController.instance || (DisplayerCarController.instance = new DisplayerCarController());\r\n    }\r\n    CreatePlayer(id) {\r\n        if (!id)\r\n            id = PlayerManager.Instance.equipId;\r\n        if (!this.player) {\r\n            let p = GamePool.Instance.GetModel(GamePool.modeltype.Player + id);\r\n            if (p)\r\n                this.player = p;\r\n            this.mainscene.addChild(this.player);\r\n            this.player.transform.localPosition = MathTool.VecZero;\r\n            this.player.transform.localRotationEuler = MathTool.VecZero;\r\n        }\r\n        else {\r\n            GamePool.Instance.RecoverModel(this.player);\r\n            let p = GamePool.Instance.GetModel(GamePool.modeltype.Player + id);\r\n            if (p)\r\n                this.player = p;\r\n            this.mainscene.addChild(this.player);\r\n            this.player.transform.localPosition = MathTool.VecZero;\r\n            this.player.transform.localRotationEuler = MathTool.VecZero;\r\n        }\r\n        let anima = this.player.getChildAt(0).getComponent(Laya.Animator);\r\n        anima.play(MusicType.Dance);\r\n        anima.speed = 1;\r\n    }\r\n    Reset() {\r\n        if (this.mainscene) {\r\n            this.mainscene.removeSelf();\r\n        }\r\n        if (this.player) {\r\n            GamePool.Instance.RecoverModel(this.player);\r\n            this.player = null;\r\n        }\r\n    }\r\n    InitDis(par) {\r\n        if (!this.mainscene) {\r\n            this.mainscene = new Laya.Scene3D();\r\n            this.maincamera = new Laya.Camera();\r\n            this.maincamera.enableHDR = false;\r\n            this.mainscene.addChild(this.maincamera);\r\n            this.light = new Laya.DirectionLight();\r\n            this.light.transform.rotation = new Laya.Quaternion(-0.24776, 0, 0, 0.9688215);\r\n            this.light.intensity = 0.45;\r\n            this.light.color = new Vector3(1, 1, 1);\r\n            this.mainscene.addChild(this.light);\r\n            let or = 1;\r\n            this.maincamera.viewport = new Laya.Viewport(par.x * or, par.y * or, par.width * or, par.height * or);\r\n            this.maincamera.orthographic = false;\r\n            this.maincamera.enableHDR = false;\r\n            this.maincamera.clearFlag = 2;\r\n            this.maincamera.fieldOfView = 60;\r\n            this.maincamera.transform.position = new Vector3(0, 1.52, 3.12);\r\n            this.maincamera.transform.rotation = new Laya.Quaternion(0, 0, 0, 1);\r\n        }\r\n        let or = 1;\r\n        this.maincamera.viewport = new Laya.Viewport(par.x * or, par.y * or, par.width * or, par.height * or);\r\n        par.addChild(this.mainscene);\r\n        this.CreatePlayer();\r\n    }\r\n}\r\n//# sourceMappingURL=DisplayerCarController.js.map",
  "references": [
    "C:/Users/admin/Desktop/？？/gungang/src/Game/GamePool.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/PlayerManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/MainRoleManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Util/MathTool.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Util/MatrixTransform.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Manager/CameraManager.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/ColliderAndMusicType.ts"
  ],
  "map": "{\"version\":3,\"file\":\"DisplayerCarController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Net/DisplayerCarController.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAO,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,MAAM,OAAQ,sBAAsB;IAEzB,MAAM,KAAK,QAAQ;QACtB,OAAO,sBAAsB,CAAC,QAAQ,IAAI,CAAC,sBAA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