private void Awake()
 {
     navMeshAgent            = GetComponent <NavMeshAgent>();
     animator                = GetComponentInChildren <Animator>();
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
 }
Exemple #2
0
 private void Awake()
 {
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
     animator       = GetComponentInChildren <Animator>();
     enemyDirection = GetComponent <Transform>();
     coll           = GetComponent <Collider>();
 }
 private void Awake()
 {
     navMeshAgent            = GetComponent <NavMeshAgent>();
     anim                    = GetComponent <Animator>();
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
     //weaponManager = GetComponent<WeaponManager>();
     //weaponManager.HitEnemy += WeaponManager_HitEnemy;
     //aggroDetection.OnExitAggro += AggroDetection_OnExitAggro;
 }
Exemple #4
0
 private void Awake()
 {
     player                  = GameObject.FindGameObjectWithTag("Player");
     distance                = GetComponent <NavMeshAgent>();
     animator                = GetComponentInChildren <Animator>();
     checkTime               = 0;
     attacked                = false;
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
 }
 private void Awake()
 {
     check                   = 0;
     allEnemy                = GameObject.FindGameObjectsWithTag("Enemy");
     navMeshAgent            = GetComponent <NavMeshAgent>();
     animator                = GetComponentInChildren <Animator>();
     transform_child         = transform.GetChild(0).GetComponent <Transform>().position;
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
 }
Exemple #6
0
 private void Awake()
 {
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetected;
     audioSourceController   = GetComponent <AudioSourceController>();
 }
Exemple #7
0
 private void Awake()
 {
     aggroDetection          = GetComponent <AggroDetection>();
     aggroDetection.OnAggro += AggroDetection_OnAggro;
 }
Exemple #8
0
 private void Awake()
 {
     aggroDetection          = GetComponentInChildren <AggroDetection>();
     aggroDetection.OnAggro += Aggrodetection_OnAggro;
 }