void Start() { GetComponent <Rigidbody>().centerOfMass = centerOfMass; Transform[] pathTransforms = path.GetComponentsInChildren <Transform>(); nodes = new List <Transform>(); EngineGetNodes(pathTransforms, nodes); sensor = GetComponent <CarBrain>(); controlCar = GetComponent <CarDashBoard>(); }
private void Start() { controlCar = GetComponent <CarDashBoard>(); }