{
  "code": "import { GameState } from \"./GameManager\";\r\nexport var EventType;\r\n(function (EventType) {\r\n    EventType[EventType[\"ScoreChange\"] = 0] = \"ScoreChange\";\r\n    EventType[EventType[\"MoneyChange\"] = 1] = \"MoneyChange\";\r\n    EventType[EventType[\"GetMoney\"] = 2] = \"GetMoney\";\r\n    EventType[EventType[\"InputState\"] = 3] = \"InputState\";\r\n    EventType[EventType[\"Hover\"] = 4] = \"Hover\";\r\n    EventType[EventType[\"extraspeedtime\"] = 5] = \"extraspeedtime\";\r\n    EventType[EventType[\"speed\"] = 6] = \"speed\";\r\n    EventType[EventType[\"flytime\"] = 7] = \"flytime\";\r\n    EventType[EventType[\"OnLand\"] = 8] = \"OnLand\";\r\n    EventType[EventType[\"OutLand\"] = 9] = \"OutLand\";\r\n    EventType[EventType[\"ChangeStage\"] = 10] = \"ChangeStage\";\r\n    EventType[EventType[\"GetRoadPoint\"] = 11] = \"GetRoadPoint\";\r\n    EventType[EventType[\"EnterStage\"] = 12] = \"EnterStage\";\r\n    EventType[EventType[\"CompleteStage\"] = 13] = \"CompleteStage\";\r\n    EventType[EventType[\"crownchange\"] = 14] = \"crownchange\";\r\n    EventType[EventType[\"PlayerRank\"] = 15] = \"PlayerRank\";\r\n})(EventType || (EventType = {}));\r\nexport class EventManager {\r\n    static EventOn(_type, caller, _listance) {\r\n        this.mDispatcher.on(EventType[_type], caller, _listance);\r\n    }\r\n    static EventOff(_type, caller, _listance) {\r\n        this.mDispatcher.off(EventType[_type], caller, _listance);\r\n    }\r\n    static EventTrigger(_type, data = null) {\r\n        this.mDispatcher.event(EventType[_type], data);\r\n    }\r\n    static GameStateEventOn(_type, caller, _listance) {\r\n        this.mDispatcher.on(GameState[_type], caller, _listance);\r\n    }\r\n    static GameStateEventOff(_type, caller, _listance) {\r\n        this.mDispatcher.off(GameState[_type], caller, _listance);\r\n    }\r\n    static GameStateEventTrigger(_type, data = null) {\r\n        this.mDispatcher.event(GameState[_type], data);\r\n    }\r\n}\r\nEventManager.mDispatcher = new Laya.EventDispatcher();\r\n//# sourceMappingURL=EventManager.js.map",
  "references": [
    "C:/Users/admin/Desktop/runner/src/Scripts/Game/GameManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"EventManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/Scripts/Game/EventManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAN,IAAY,SAAiL;AAA7L,WAAY,SAAS;IAAC,uDAAW,CAAA;IAAC,uDAAW,CAAA;IAAC,iDAAQ,CAAA;IAAC,qDAAU,CAAA;IAAC,2CAAK,CAAA;IAAC,6DAAc,CAAA;IAAC,2CAAK,CAAA;IAAC,+CAAO,CAAA;IAAC,6CAAM,CAAA;IAAC,+CAAO,CAAA;IAAC,wDAAW,CAAA;IAAC,0DAAY,CAAA;IAAC,sDAAU,CAAA;IAAC,4DAAa,CAAA;IAAC,wDAAW,CAAA;IAAC,sDAAU,CAAA;AAAA,CAAC,EAAjL,SAAS,KAAT,SAAS,QAAwK;AAE9L,MAAM,OAAO,YAAY;IAGd,MAAM,CAAC,OAAO,CAAC,KAAe,EAAC,MAAU,EAAC,SAAkB;QAE/D,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAC,MAAM,EAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAe,EAAC,MAAU,EAAC,SAAkB;QAEhE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,EAAC,MAAM,EAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,KAAe,EAAC,IAAI,GAAG,IAAI;QAElD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAEM,MAA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