void Start() { LevelSettings level = GameObject.Find("World").GetComponent <LevelSettings> (); worldpath = level.worldPath; control = gameObject.GetComponent <CarControl2> (); nextPoint = worldpath.getNextPointByID(nextPointID); nextNode = worldpath.getNodeByID(nextPointID); }
void Start() { control = gameObject.GetComponent <CarControl2>(); }