Esempio n. 1
0
    private void Awake()
    {
        // get the car controller reference
        m_CarController = GetComponent <CarControllerSystem>();

        // give the random perlin a random value
        m_RandomPerlin = Random.value * 100;

        m_Rigidbody = GetComponent <Rigidbody>();
    }
 void Start()
 {
     _source  = GetComponent <AudioSource>();
     _vehicle = GetComponent <CarControllerSystem>();
 }
 private void Start()
 {
     _inputs = UnityEngine.Vector3.zero;
     // get the car controller
     m_Car = GetComponent <CarControllerSystem>();
 }