예제 #1
0
 private void Prepare()
 {
     for (int i = queue.Count; i < QueueSize; i++)
     {
         queue.Enqueue(bubbleSpawner.CreateRandom());
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        private List <Bubble> PrepareRow()
        {
            List <Bubble> newRow = new List <Bubble>();

            for (int i = 0; i < 12; i++)
            {
                newRow.Add(spawner.CreateRandom());
            }

            return(newRow);
        }