private void AddTraversableTilesToAStar(IEnumerable <Vector2> tiles, AStar aStar) { foreach (var tile in tiles) { var tileId = GetIdForTile(tile); aStar.AddPoint(tileId, new Vector3(tile.x, tile.y, 0)); } }
private void AddTraversableTilesToAStar(IEnumerable <Vector2> tiles, AStar aStar) { foreach (var tile in tiles) { var tileId = GetIdForTile(tile); aStar.AddPoint(tileId, new Vector3(tile.x, tile.y, 0)); } }