Esempio n. 1
0
    private void Awake()
    {
        m_CarController = GetComponent <RickshawController>();

        navAgent = GetComponent <NavMeshAgent>();

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

        m_Rigidbody = GetComponent <Rigidbody>();

        if (m_Targets.Length > 0)
        {
            m_Target = m_Targets [0];
        }
    }
Esempio n. 2
0
    private RickshawController m_Car; // the car controller we want to use


    private void Awake()
    {
        // get the car controller
        m_Car = GetComponent <RickshawController>();
    }