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