예제 #1
0
파일: Player.cs 프로젝트: nebuch/Migros
        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;
        }