示例#1
0
        void SetInitialReferences()
        {
            enemyMaster = GetComponent <Enemy_Master>();

            if (GetComponent <Animator>() != null)
            {
                myAnimator = GetComponent <Animator>();
            }
        }
示例#2
0
        void SetInitialReferences()
        {
            enemyMaster = GetComponent <Enemy_Master>();

            if (GetComponent <UnityEngine.AI.NavMeshAgent>() != null)
            {
                myNavMeshAgent = GetComponent <UnityEngine.AI.NavMeshAgent>();
            }
        }
示例#3
0
        void SetInitialReferences()
        {
            enemyMaster = GetComponent <Enemy_Master>();
            checkRate   = Random.Range(0.1f, 0.2f);

            if (GetComponent <UnityEngine.AI.NavMeshAgent>() != null)
            {
                myNavMeshAgent = GetComponent <UnityEngine.AI.NavMeshAgent>();
            }
        }
示例#4
0
        void SetInitialReferences()
        {
            enemyMaster = GetComponent <Enemy_Master>();
            myTransform = transform;

            if (GetComponent <UnityEngine.AI.NavMeshAgent>() != null)
            {
                myNavMeshAgent = GetComponent <UnityEngine.AI.NavMeshAgent>();
            }

            checkRate = Random.Range(0.3f, 0.4f);
        }
示例#5
0
        void SetInitialReferences()
        {
            enemyMaster = GetComponent <Enemy_Master>();
            myTransform = transform;

            if (head == null)
            {
                head = myTransform;
            }

            checkRate = Random.Range(0.8f, 1.2f);
        }
        void SetInitialReferences()
        {
            enemyMaster = transform.root.GetComponent <Enemy_Master>();

            if (GetComponent <Collider>() != null)
            {
                myCollider = GetComponent <Collider>();
            }

            if (GetComponent <Rigidbody>() != null)
            {
                myRigidBody = GetComponent <Rigidbody>();
            }

            ////Edit: Redid it using Inspector since the Golem head started to fly off during enable state.
            ////New Code. Enable the Projection to make sure that enemy doesn't behave funny during death.
            //if (GetComponent<CharacterJoint>() != null)
            //{
            //    GetComponent<CharacterJoint>().enableProjection = true;
            //}
        }
示例#7
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <Enemy_Master>();
 }
示例#8
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <Enemy_Master>();
     myTransform = transform;
 }
示例#9
0
 void SetInitialReferences()
 {
     enemyMaster = transform.root.GetComponent <Enemy_Master>();
 }