public void GenerateMap(Tilemap tilemap, TileBase tile) { tilemap.ClearAllTiles(); if (randomSeed) { seed = Random.Range(0f, 10f); } int[,] map = new int[width, height]; map = MapHelpers.GenerateArray(width, height, true); Debug.Log("GenerateArray:\n" + LogMap(map)); map = MapHelpers.PerlinNoise(map, seed); Debug.Log("PerlinNoise:\n" + LogMap(map)); MapHelpers.RenderMap(map, tilemap, tile); }