private void Update() { HandleCameraMovement(); HandleClickingStuff(); if (!Input.GetMouseButton(1)) { //not doing camera movement, can do keyboard shortcuts if (Input.GetKeyUp(KeyCode.W)) { if (OnChooseDirection != null) { var dir = TargetInfo.DirectionFromLocalDirection(Vector3Int.up); OnChooseDirection(this, dir); } } else if (Input.GetKeyUp(KeyCode.D)) { if (OnChooseDirection != null) { var dir = TargetInfo.DirectionFromLocalDirection(Vector3Int.right); OnChooseDirection(this, dir); } } else if (Input.GetKeyUp(KeyCode.S)) { if (OnChooseDirection != null) { var dir = TargetInfo.DirectionFromLocalDirection(Vector3Int.down); OnChooseDirection(this, dir); } } else if (Input.GetKeyUp(KeyCode.A)) { if (OnChooseDirection != null) { var dir = TargetInfo.DirectionFromLocalDirection(Vector3Int.left); OnChooseDirection(this, dir); } } } }