{
  "code": "export class AnimatorManager {\r\n    static Play(isboss = false, animator, anim, islooping = null, complete = null, speed = null) {\r\n        if (animator == null || animator.getControllerLayer() == null) {\r\n            complete && complete.run();\r\n            return;\r\n        }\r\n        let animatorState = animator.getControllerLayer().getAnimatorState(anim);\r\n        if (animatorState == null) {\r\n            complete && complete.run();\r\n            return;\r\n        }\r\n        if (islooping != null)\r\n            animatorState.clip.islooping = islooping;\r\n        if (speed != null)\r\n            animatorState.speed = speed;\r\n        animator.play(anim);\r\n        if (complete) {\r\n            let cb = () => {\r\n                if (animator.getCurrentAnimatorPlayState().normalizedTime >= 1) {\r\n                    if (isboss) {\r\n                        animator.play(\"idle\");\r\n                    }\r\n                    Laya.timer.clear(this, cb);\r\n                    complete.run();\r\n                }\r\n            };\r\n            Laya.timer.frameLoop(1, this, cb);\r\n        }\r\n    }\r\n}\r\n//# sourceMappingURL=AnimatorManager.js.map",
  "references": [],
  "map": "{\"version\":3,\"file\":\"AnimatorManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Manager/AnimatorManager.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,OAAO,eAAe;IACjB,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,EAAC,QAAuB,EAAE,IAAY,EAAE,YAA4B,IAAI,EAAE,WAAyB,IAAI,EAAE,QAAuB,IAAI;QACjK,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,kBAAkB,EAAE,IAAI,IAAI,EAAE;YAC3D,QAAQ,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YAC3B,OAAO;SACV;QACD,IAAI,aAAa,GAAG,QAAQ,CAAC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAuB,CAAC;QAC/F,IAAI,aAAa,IAAI,IAAI,EAAE;YACvB,QAAQ,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YAC3B,OAAO;SACV;QACD,IAAI,SAAS,IAAI,IAAI;YAAE,aAAa,CAAC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