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