{
  "code": "export default class GameManager extends Laya.Script {\r\n    constructor() {\r\n        super();\r\n        this.prafabbox = new Laya.Sprite();\r\n        this.BallPrefab = new Array(\"2\", \"4\", \"8\", \"16\", \"32\", \"64\", \"128\", \"256\", \"512\", \"1024\", \"2048\", \"4096\", \"8192\", \"16384\");\r\n        this.PrefabControl = [];\r\n        GameManager.ins = this;\r\n        Laya.stage.addChild(this.prafabbox);\r\n    }\r\n    static get Instance() {\r\n        if (GameManager.ins) {\r\n            return GameManager.ins;\r\n        }\r\n        else {\r\n            return new GameManager();\r\n        }\r\n    }\r\n    onAwake() {\r\n        for (let i = 0; i < 14; i++) {\r\n            this.ReadJSON(i);\r\n        }\r\n    }\r\n    ReadJSON(i) {\r\n        Laya.loader.create(\"Prefab/\" + this.BallPrefab[i] + \".json\", Laya.Handler.create(this, this.cre));\r\n    }\r\n    cre(Prefab) {\r\n        let obj = Prefab;\r\n        this.PrefabControl.push(obj);\r\n    }\r\n    CreatPrefab() {\r\n        let pre = Laya.Pool.getItemByCreateFun(this.BallPrefab[0], this.PrefabControl[0].create);\r\n        pre.pos(0, 0);\r\n        this.prafabbox.addChild(pre);\r\n        return pre;\r\n    }\r\n    onKeyDown(e) {\r\n        if (e.keyCode == 32) {\r\n            this.CreatPrefab();\r\n        }\r\n    }\r\n}\r\n//# sourceMappingURL=GameManager.js.map",
  "references": [],
  "map": "{\"version\":3,\"file\":\"GameManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Main/GameManager.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAI,CAAC,MAAM;IAQhD;QACI,KAAK,EAAE,CAAC;QALL,cAAS,GAAe,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1C,eAAU,GAAY,IAAI,KAAK,CAAS,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,E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