private void CreateMaze() { level = new Maze(mazeWidth, mazeHeight); PopulateIslandArrays(); ImportCellPrefabs(); level.GenerateMazeFromCell(mazeFromX, mazeFromY, mazeLength, maxPathIterationLenght); //Send the maze to the minimap var miniMap = GameObject.FindGameObjectWithTag("MiniMap").GetComponent<MiniMap>(); miniMap.CreateMiniMap(level); InstantiateMaze(level); InstantiateMazeBridges(level); }