private void ResetPlayer() { gridX = 0; gridY = 0; Vector3 arrayToWorld = HexUtils.ArrayToWorldCoordinates(0, 0, GridController.CellRadius); Vector3 spawnLocation = arrayToWorld + CenterOffset * GridController.CellRadius; transform.position = spawnLocation; List <CellIndex> neighbours = GridController.Grid.GetPassableNeighbours(gridX, gridY); GridController.Grid[0, 0].Visible = true; UpdateArrows(neighbours); GridController.Grid.MakeNeighboursVisible(0, 0, neighbours); int x = Random.Range(GridController.Width / 2, GridController.Width); int y = Random.Range(GridController.Height / 2, GridController.Height); GridController.Grid.SetFinishCell(x, y); GridController.Grid.MakeNeighboursVisible(x, y); Timer.StartTimer(); }