Esempio n. 1
0
 void DrawGrass()
 {
     grassTiles = new List <GameObject>();
     for (int x = 0; x < width; x++)
     {
         for (int y = 0; y < height; y++)
         {
             grassTiles.Add(tiles.GetRandomGrassTile(x * 3, y * 3));
             grassTiles[grassTiles.Count - 1].transform.parent = transform;
         }
     }
 }