Example #1
0
    private void TryDraw()
    {
        if (manualPoints.Count > 1)
        {
            roadNetwork.AddCityCentre(manualPoints);
        }

        for (int i = 0; i < roadNetwork.Roads.Count; i++)
        {
            AddRoads(roadNetwork.Roads[i]);
            //GameObject test = new GameObject("Road");
        }

        for (int i = 0; i < roadNetwork.Intersections.Count; i++)
        {
            AddIntersection(roadNetwork.Intersections[i]);
        }

        roads         = new List <Roads>(roadNetwork.Roads);
        intersections = new List <Intersection>(roadNetwork.Intersections);
    }