{
  "code": "export var EventState;\r\n(function (EventState) {\r\n    EventState[EventState[\"LoadComplete\"] = 0] = \"LoadComplete\";\r\n    EventState[EventState[\"SceneInit\"] = 1] = \"SceneInit\";\r\n    EventState[EventState[\"StageInit\"] = 2] = \"StageInit\";\r\n    EventState[EventState[\"StageCreateComplete\"] = 3] = \"StageCreateComplete\";\r\n    EventState[EventState[\"AnimatorEnd\"] = 4] = \"AnimatorEnd\";\r\n})(EventState || (EventState = {}));\r\nexport var StageState;\r\n(function (StageState) {\r\n    StageState[StageState[\"Win\"] = 0] = \"Win\";\r\n    StageState[StageState[\"Lose\"] = 1] = \"Lose\";\r\n    StageState[StageState[\"Start\"] = 2] = \"Start\";\r\n    StageState[StageState[\"StageCreateComPlete\"] = 3] = \"StageCreateComPlete\";\r\n    StageState[StageState[\"Over\"] = 4] = \"Over\";\r\n})(StageState || (StageState = {}));\r\nexport class EventManager {\r\n    static EventOn(_mode, caller, fun, args = []) {\r\n        EventManager.instance.on(EventState[_mode], caller, fun, args);\r\n    }\r\n    static EventOff(_mode, caller, fun, args = []) {\r\n        EventManager.instance.off(EventState[_mode], caller, fun);\r\n    }\r\n    static EventTrigger(_mode, args = []) {\r\n        EventManager.instance.event(EventState[_mode], args);\r\n    }\r\n    static StageOn(_mode, caller, fun, args = []) {\r\n        EventManager.instance.on(StageState[_mode], caller, fun, args);\r\n    }\r\n    static StageOff(_mode, caller, fun, args = []) {\r\n        EventManager.instance.off(StageState[_mode], caller, fun);\r\n    }\r\n    static StageTrigger(_mode, args = []) {\r\n        EventManager.instance.event(StageState[_mode], args);\r\n    }\r\n}\r\nEventManager.instance = new Laya.EventDispatcher();\r\n//# sourceMappingURL=EventManager.js.map",
  "references": [],
  "map": "{\"version\":3,\"file\":\"EventManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Tools/EventManager.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,CAAN,IAAY,UAA4E;AAAxF,WAAY,UAAU;IAAC,2DAAY,CAAA;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