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