Exemple #1
0
 public void SpawnThings(Graph G)
 {
     for (int i = 0; i < G.width; ++i)
     {
         for (int j = 0; j < G.height; ++j)
         {
             for (int k = 0; k < G.length; ++k)
             {
                 if (G.grid[i, j, k].item == true)
                 {
                     BoxControl.createBox(i - 3, j + 1, (int)transform.position.z + k);
                 }
             }
         }
     }
 }