예제 #1
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <EnemyMaster>();
     myTransform = transform;
     if (head == null)
     {
         head = myTransform;
     }
     checkRate   = Random.Range(0.8f, 1.2f);
     fieldOfView = Mathf.Cos(fieldOfView * Mathf.Deg2Rad);
 }
예제 #2
0
 void SetInitialReferences()
 {
     enemyMaster = transform.root.GetComponent <EnemyMaster>();
     if (GetComponent <Collider>() != null)
     {
         myCollider = GetComponent <Collider>();
     }
     if (GetComponent <Rigidbody>() != null)
     {
         myRigidbody = GetComponent <Rigidbody>();
     }
 }
예제 #3
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <EnemyMaster>();
     myTransform = transform;
 }
예제 #4
0
 void SetInitialReferences()
 {
     enemyMaster = transform.root.GetComponent <EnemyMaster>();
 }
예제 #5
0
 void SetInitialReferences()
 {
     enemyMaster = GetComponent <EnemyMaster>();
 }