void _OnGameInit(GameInitEvent evt) { mainCamera = GameObject.Find("Main Camera").GetComponent <MonoMainCamera>(); player = Instantiate(playerPrefab); playerCtl = player.GetComponent <MonoPlayer>(); InputUtil.Init(); mainCamera.target = player.transform; EventBus.Post(new CameraPositionResetEvent()); }
void OnPostInit(PostGameInitEvent ev) { _mainCamera = GameContext.Instance.mainCamera; }