예제 #1
0
 public void ShootAt(Tile tile)
 {
     if (allow && grid.Attach(nextBubble, tile))
     {
         StartCoroutine(Attaching(nextBubble));
         LoadCannon();
     }
 }
예제 #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
        public void ShootAt(Tile tile)
        {
            var bubble = GetFromQueue();

            grid.Attach(bubble, tile);
        }