Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void GenerateRoads(BasicTerrainGen gen)
 {
     centralJunction = Junction.CreateNew(transform);
     centralJunction.GenerateRoads(this, gen.centerRoadsCount, gen.minRoadsLength, gen.maxRoadsLength, gen.centerRoadsWidth);
 }