void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); if (GetComponent <NavMeshAgent>() != null) { myNavMeshAgent = GetComponent <NavMeshAgent>(); } }
void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); if (GetComponent <Animator>() != null) { myAnimator = GetComponent <Animator>(); } }
void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); if (GetComponent <NavMeshAgent>() != null) { myNavMeshAgent = GetComponent <NavMeshAgent>(); } checkRate = Random.Range(0.1f, 0.2f); }
void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); myTransform = transform; if (head == null) { head = myTransform; } checkRate = Random.Range(0.8f, 1.2f); }
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>(); } }
void SetInitialReferences() { enemyMaster = transform.root.GetComponent <Enemy_Master>(); }
void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); }
void SetInitialReferences() { enemyMaster = GetComponent <Enemy_Master>(); myTransform = transform; }