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