public void CreateRoadTo(Junction junc, float width, bool followGround, float subdivDistance, TerrainGen terrain) { Road road = Road.CreateNew(transform.parent, this, junc, width, followGround, subdivDistance, terrain); roads.Add(road); }
public void GenerateRoads(BasicTerrainGen gen) { centralJunction = Junction.CreateNew(transform); centralJunction.GenerateRoads(this, gen.centerRoadsCount, gen.minRoadsLength, gen.maxRoadsLength, gen.centerRoadsWidth); }