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; }
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; }