private void PlaceHero() { int x = UnityEngine.Random.Range(0, map.GetLength(1)); int y = UnityEngine.Random.Range(0, map.GetLength(0)); var closestRoad = MazeHelper.GetClosestRoad(map, x, y); _hero.position = new Vector3(closestRoad.Item1, 0, closestRoad.Item2); }