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