{
  "code": "import { AssetManager } from \"../Tools/AssetManager\";\r\nimport GamePool from \"../Tools/GamePool\";\r\nimport { EventManager, EventState } from \"../Tools/EventManager\";\r\nimport { PlayerControl } from \"./PlayerControl\";\r\nimport { ViewManager, ViewType } from \"../View/ViewManager\";\r\nexport class GameManager {\r\n    constructor() {\r\n        this.EnemyArray = [];\r\n        GameManager.ins = this;\r\n        EventManager.EventOn(EventState.SceneInit, this, this.Init);\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    Init() {\r\n        this.CreatCharacter();\r\n        this.mainscene = AssetManager.Instance.mainscene;\r\n        Laya.stage.addChildAt(this.mainscene, 0);\r\n        ViewManager.Instance.ShowView(ViewType.MainView);\r\n    }\r\n    CreatCharacter() {\r\n        this.CreatPlayer();\r\n        this.CreatEnemy();\r\n    }\r\n    CreatPlayer() {\r\n        var playermodel = GamePool.Instance.GetModel(AssetManager.Instance.Player.get(1), \"\");\r\n        var horsemodel = GamePool.Instance.GetModel(AssetManager.Instance.Horse.get(1), \"\");\r\n        playermodel.addChild(horsemodel);\r\n        playermodel.transform.position = new Laya.Vector3(0, 0, 0);\r\n        horsemodel.transform.localScale = new Laya.Vector3(1, 1, 1);\r\n        horsemodel.transform.localPosition = new Laya.Vector3(0, 0, 0);\r\n        PlayerControl.Instance.Init(playermodel);\r\n        AssetManager.Instance.mainscene.addChild(playermodel);\r\n    }\r\n    CreatEnemy() {\r\n    }\r\n    EventListen() {\r\n    }\r\n}\r\n//# sourceMappingURL=GameManager.js.map",
  "references": [
    "E:/LayaProject/ArcherWorrior/src/Tools/AssetManager.ts",
    "E:/LayaProject/ArcherWorrior/src/Tools/GamePool.ts",
    "E:/LayaProject/ArcherWorrior/src/Tools/EventManager.ts",
    "E:/LayaProject/ArcherWorrior/src/Game/PlayerControl.ts",
    "E:/LayaProject/ArcherWorrior/src/View/ViewManager.ts"
  ],
  "map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