Exemplo n.º 1
0
 public void BuildStartingPlatform(int sizeStartingPlatform)
 {
     for (int x = -sizeStartingPlatform; x <= sizeStartingPlatform; x++)
     {
         for (int z = -sizeStartingPlatform; z <= sizeStartingPlatform; z++)
         {
             var tile = _tilePool.GetObject();
             tile.transform.position = new Vector3(x, 0, z);
             _lastPosition           = tile.transform.position;
             TilesOnScene.Add(tile);
         }
     }
 }