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); } } }
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); } } } }