{
  "code": "import { LevelManager } from \"./LevelManager\";\r\nimport { AssetManager } from \"../Resources/AssetManager\";\r\nexport class PlayerManager {\r\n    constructor() {\r\n        PlayerManager.ins = this;\r\n    }\r\n    static get Instance() {\r\n        if (PlayerManager.ins == null) {\r\n            return new PlayerManager();\r\n        }\r\n        return PlayerManager.ins;\r\n    }\r\n    Init() {\r\n        if (this.PlayerNode == null) {\r\n            this.PlayerNode = new Laya.Sprite3D();\r\n            LevelManager.Instance.spritepool.addChild(this.PlayerNode);\r\n            if (this.player == null) {\r\n                let playerpref = AssetManager.Instance.Character.get(1);\r\n                this.player = Laya.Sprite3D.instantiate(playerpref);\r\n                this.PlayerNode.addChild(this.player);\r\n            }\r\n        }\r\n        this.PlayerNode.transform.position = AssetManager.Instance.playerpos.transform.position.clone();\r\n        this.PlayerNode.transform.rotation = AssetManager.Instance.playerpos.transform.rotation.clone();\r\n        this.player.transform.localPosition = new Laya.Vector3(0, 0, 0);\r\n    }\r\n}\r\n//# sourceMappingURL=PlayerManager.js.map",
  "references": [
    "E:/LayaProject/RubikCube/src/Manager/LevelManager.ts",
    "E:/LayaProject/RubikCube/src/Resources/AssetManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"PlayerManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Manager/PlayerManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,OAAO,aAAa;IAEtB;QACI,aAAa,CAAC,GAAG,GAAG,IAAI,CAAC;IAC7B,CAAC;IACM,MAAM,KAAK,QAAQ;QACtB,IAAG,aAAa,CAAC,GAAG,IAAI,IAAI,EAAC;YACzB,OAAO,IAAI,aAAa,EAAE,CAAC;SAC9B;QACD,OAAO,aAAa,CAAC,GAAG,CAAC;IAC7B,CAAC;IAID,IAAI;QACA,IAAG,IAAI,CAAC,UAAU,IAA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