Esempio n. 1
0
    void Start()
    {
        LevelSettings level = GameObject.Find("World").GetComponent <LevelSettings> ();

        worldpath = level.worldPath;
        control   = gameObject.GetComponent <CarControl2> ();

        nextPoint = worldpath.getNextPointByID(nextPointID);
        nextNode  = worldpath.getNodeByID(nextPointID);
    }
Esempio n. 2
0
 void Start()
 {
     control = gameObject.GetComponent <CarControl2>();
 }