// Use this for initialization
 void Start()
 {
     body = transform.GetComponentInChildren<CarPhysicsController>();
     nodeToFollow = transform.GetComponentInChildren<FollowPathV2>();
 }
 private void StartSound()
 {
     m_CarController = GetComponent<CarPhysicsController>();
         m_HighAccel = SetUpEngineAudioSource(AccelClip);
         m_StartedSound = true;
 }
Example #3
0
 private void StartSound()
 {
     m_CarController = GetComponent <CarPhysicsController>();
     m_HighAccel     = SetUpEngineAudioSource(AccelClip);
     m_StartedSound  = true;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     body         = transform.GetComponentInChildren <CarPhysicsController>();
     nodeToFollow = transform.GetComponentInChildren <FollowPathV2>();
 }