//-------------------------------------------------------------------------------------------- void Start() { seed = UnityEngine.Random.Range(0, 1000); Roads road = new Roads(); road.width = width; road.height = height; road.mean = mean; road.std_dev = std_dev; road.generateRandomPoints(); road.returnEdges(); edges = road.edges; road.placeRoads(); roads = road.roads; Buildings buildings = new Buildings(); buildings.width = width; buildings.height = height; buildings.edges = edges; buildings.c = offsetFromRoad; //intercept offset buildings.placeBuildings(); buildings.putBuildingsWithPerlinNoise(); houses = buildings.houses; scatterHouses(); removeIntersections(); }