private void Prepare() { for (int i = queue.Count; i < QueueSize; i++) { queue.Enqueue(bubbleSpawner.CreateRandom()); } }
private void FillRow(int q, int r, Vector3 offset = default) { Tile tile = grid.TileAt(q, r); while (tile != null) { var bubble = spawner.CreateRandom(); bubble.Movement.Teleport(tile.transform.position + offset); grid.Attach(bubble, tile); tile = grid.Neighbour(tile, HexDirection.E); } }
private List <Bubble> PrepareRow() { List <Bubble> newRow = new List <Bubble>(); for (int i = 0; i < 12; i++) { newRow.Add(spawner.CreateRandom()); } return(newRow); }