public void setEndPoints(int startID, int destinationID)
 {
     setEndPoints(
         MapPoint.FindByID(startID).transform.position,
         MapPoint.FindByID(destinationID).transform.position
         );
 }
Exemple #2
0
    public float unitsToSpaceMiles = 45;//multiply by Unity units to get space miles

    // Start is called before the first frame update
    void Start()
    {
        GameManager gameManager = FindObjectOfType <GameManager>();

        if (gameManager)
        {
            if (gameManager.finishedRoute)
            {
                currentMapPoint = MapPoint.FindByID(gameManager.finishedRoute.destinationID);
            }
        }
        FindObjectOfType <RoutePath>().display(true);
    }