Exemple #1
0
 private void Awake()
 {
     _view    = GetComponent <PAIView>();
     _roaming = GetComponent <PAIRoaming>();
     _enemy   = GetComponent <PAIEnemy>();
     _attack  = GetComponent <IPAIAttack>();
 }
Exemple #2
0
 void Start()
 {
     view = transform.parent.gameObject.GetComponent <PAIView>();
 }
Exemple #3
0
 void Start()
 {
     _nav  = GetComponent <NavMeshAgent>();
     _view = GetComponent <PAIView>();
 }