void Update() { var totalMovement = new Vector3(0f, Input.GetAxis("Vertical"), Input.GetAxis("Horizontal")); if (totalMovement.magnitude > 0f) { MovingEntity.Move(totalMovement); } if (Input.GetButtonDown("Miner")) { Systems.SwitchMode(); } if (Input.GetKeyDown(KeyCode.Tab)) { if (mapExpanded) { MapExpand.Shrink(); MapCamera.ZoomIn(); } else { MapExpand.Expand(); MapCamera.ZoomOut(); } mapExpanded = !mapExpanded; } if (Input.GetKeyDown(KeyCode.Escape)) { InGameMenu.SetActive(!InGameMenu.activeInHierarchy); } }