コード例 #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
ファイル: Player.cs プロジェクト: jamestiller/ritual
        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;
        }