void Awake()
 {
     tdr = GetComponent <TrainingDataRecorder> ();
     cac = GetComponent <CarAiController> ();
     car = GetComponent <Rigidbody> ();
     im  = GetComponent <InputManager> ();
 }
    void Awake()
    {
        inputManager = GetComponent <InputManager> ();
        trackPoints  = new Transform[track.childCount];

        for (int i = 0; i < trackPoints.Length; i++)
        {
            trackPoints [i] = track.GetChild(i);
        }
        car          = GetComponent <carController> ();
        carRigidbody = GetComponent <Rigidbody> ();
        trackBuilder = track.GetComponent <TrackBuilder> ();

        tdr   = GetComponent <TrainingDataRecorder> ();
        brain = GetComponent <NeuralBrain> ();
    }
 void Start()
 {
     tdr            = car.GetComponent <TrainingDataRecorder> ();
     prevSpawnPoint = car.transform.position;
 }