private void GenerateTileArray() { tileGrid = new string[rows, columns]; for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { } } GenerateMountainTiles.SetMountains(tileGrid, rows, columns); GenerateWaterTiles.SetWater(tileGrid, rows, columns); GenerateForestTiles.SetForests(tileGrid, rows, columns); GenerateWheatTiles.SetWheat(tileGrid, rows, columns); GenerateGoldOreTiles.SetGoldOre(tileGrid, rows, columns); GenerateGrassTiles.SetGrass(tileGrid, rows, columns); GenerateTilePrefabs(); }
private void GenerateTileGridArray() { tileGrid = new string[rows, columns]; resourceGrid = new string[rows, columns]; for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { } } GenerateMountainTiles.SetMountains(tileGrid, rows, columns); GenerateWaterTiles.SetWater(tileGrid, rows, columns); GenerateGrassTiles.SetGrass(tileGrid, rows, columns); GenerateTrees.SetTrees(resourceGrid, tileGrid, rows, columns); GenerateWheat.SetWheat(resourceGrid, tileGrid, rows, columns); GenerateGoldOre.SetGoldOre(resourceGrid, tileGrid, rows, columns); GenerateTilePrefabs(); }