Пример #1
0
        private void Awake()
        {
            // Setup references.
            m_RigidBody   = GetComponent <Rigidbody>();
            m_Collider    = GetComponent <Collider>();
            m_AiCharacter = GetComponent <AICharacterControl>();
            m_Agent       = GetComponent <NavMeshAgent>();
            m_Animator    = GetComponent <Animator>();

            // Set the position that the player will be reset to.
            m_OriginPosition = transform.position;
        }
Пример #2
0
        private void Awake()
        {
            // Setup references.
            m_RigidBody = GetComponent<Rigidbody>();
            m_Collider = GetComponent<Collider>();
            m_AiCharacter = GetComponent<AICharacterControl>();
            m_Agent = GetComponent<NavMeshAgent>();
            m_Animator = GetComponent<Animator>();

            // Set the position that the player will be reset to.
            m_OriginPosition = transform.position;
        }