Пример #1
0
    void CreateJourney(Road from, Road to)
    {
        List <Road> path = null;

        if (from != null && to != null)
        {
            path = new List <Road>(Astar.CreateJourney(from, to));
        }
        else
        {
            Debug.LogError("Null ptr to A*");
        }

        Journey = new LinkedList <Waypoint>(Car.CreateWaypoints(path, controlledCar));
    }