Esempio n. 1
0
    public void GoToTile(Tile targetTile)
    {
        StopPath();

        if (city.GetTileAt(targetTile) == null)
        {
            return;
        }

        List <Tile> path = city.AStarSearch(currentTile, targetTile);

        if (path.Count > 0)
        {
            setPath(path);
        }
    }