{
  "code": "import { GamePool } from \"./GamePool\";\r\nimport { GlobalParam } from \"../Net/GlobalParam\";\r\nimport { Scene3DManager } from \"./Scene3DManager\";\r\nvar Sprite = Laya.Sprite;\r\nexport class ParticleManager {\r\n    constructor() {\r\n        this.attackmaxcount = 0;\r\n        this.explodemaxcount = 0;\r\n    }\r\n    static get Instance() {\r\n        return ParticleManager.instance || (ParticleManager.instance = new ParticleManager());\r\n    }\r\n    AttackEffect(pos) {\r\n        if (this.attackmaxcount >= GlobalParam.hitmaxcount)\r\n            return;\r\n        let h = GamePool.Instance.GetModel(\"Hit\");\r\n        h.transform.position = pos;\r\n        Scene3DManager.Instance.effectCon.addChild(h);\r\n        this.attackmaxcount++;\r\n        Laya.timer.once(800, this, this.RecoverEffect, [h], false);\r\n    }\r\n    RecoverEffect(sp) {\r\n        GamePool.Instance.RecoverModel(sp);\r\n        this.attackmaxcount--;\r\n    }\r\n    mapLoaded() {\r\n        this.layer = this.tiledMap.getLayerByIndex(0);\r\n        var radiusX = 32;\r\n        var radiusY = Math.tan(180 / Math.PI * 30) * radiusX;\r\n        var color = \"#FF7F50\";\r\n        this.sprite = new Sprite();\r\n        this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color);\r\n        this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color);\r\n        this.sprite.graphics.drawLine(-radiusX, radiusY, 0, radiusY * 2, color);\r\n        this.sprite.graphics.drawLine(radiusX, radiusY, 0, radiusY * 2, color);\r\n        Laya.stage.addChild(this.sprite);\r\n    }\r\n    ExplodeEffect(pos) {\r\n        if (this.explodemaxcount >= GlobalParam.boommaxcount)\r\n            return;\r\n        let h = GamePool.Instance.GetModel(\"Explode\");\r\n        h.transform.position = pos;\r\n        Scene3DManager.Instance.effectCon.addChild(h);\r\n        this.explodemaxcount++;\r\n        Laya.timer.once(800, this, this.RecoverExpolde, [h], false);\r\n    }\r\n    RecoverExpolde(sp) {\r\n        GamePool.Instance.RecoverModel(sp);\r\n        this.explodemaxcount--;\r\n    }\r\n    BloodEffect(pos) {\r\n        let h = GamePool.Instance.GetModel(\"Blood\");\r\n        h.transform.position = pos;\r\n        Scene3DManager.Instance.effectCon.addChild(h);\r\n        Laya.timer.once(800, this, this.RecoverBlood, [h], false);\r\n    }\r\n    RecoverBlood(sp) {\r\n        GamePool.Instance.RecoverModel(sp);\r\n    }\r\n}\r\n//# sourceMappingURL=ParticleManager.js.map",
  "references": [
    "C:/Users/admin/Desktop/？？/gungang/src/Util/Dictionary.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/GamePool.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Net/GlobalParam.ts",
    "C:/Users/admin/Desktop/？？/gungang/src/Game/Scene3DManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"ParticleManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Game/ParticleManager.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,IAAO,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAS5B,MAAM,OAAO,eAAe;IAA5B;QAKY,mBAAc,GAAG,CAAC,CAAC;QAmCnB,oBAAe,GAAG,CAAC,CAAC;IAuBhC,CAAC;IA7DU,MAAM,KAAK,QAAQ;QACtB,OAAO,eAAe,CAAC,QAAQ,IAAI,CAAC,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,YAAY,CAAC,GAAG;QACZ,IAAI,IAAI,CAAC,cAAc,IAAI,WAAW,CAAC,WAAW;YAAE,OAAO;QAC3D,IAAI,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC,CAAC,SAAS,CAAC,QAAQ,GAAG,GAAG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