Exemple #1
0
 protected override void Awake()
 {
     base.Awake();
     _navMeshAgent = GetComponent <NavMeshAgent>();
     _weaponModel  = GetComponentInChildren <WeaponModel>();
     _targets      = new List <PlayerModel>(FindObjectsOfType <PlayerModel>());
 }
Exemple #2
0
 protected override void Awake()
 {
     base.Awake();
     _navMeshAgent = GetComponent <NavMeshAgent>();
     _weaponModel  = GetComponentInChildren <WeaponModel>();
 }