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

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

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

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

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

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

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

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

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

            if (GetComponent <Rigidbody>() != null)
            {
                myRigidbody = GetComponent <Rigidbody>();
            }
        }
示例#7
0
 void SetInitialReferences()
 {
     enemyMaster = transform.root.GetComponent <Enemy_Master>();
 }
示例#8
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <Enemy_Master>();
 }
示例#9
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <Enemy_Master>();
     myTransform = transform;
 }