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