示例#1
0
 public void SpawnAllBlocks()
 {
     for (byte width = 0; width < HexGrid.Width; width++)
     {
         for (byte height = 0; height < HexGrid.Height; height++)
         {
             Block currentBlock = blockSpawner.SpawnBlock(width, height);
             blockMover.AnimateBlockAt(currentBlock.Coord);
         }
     }
 }
示例#2
0
 public void MoveBlocks()
 {
     for (byte width = 0; width < HexGrid.Width; width++)
     {
         for (byte height = 0; height < HexGrid.Height; height++)
         {
             if (hexGrid.GetBlockAt(width, height).NeedsToUpdatePosition)
             {
                 blockMover.AnimateBlockAt(width, height);
             }
         }
     }
 }