Пример #1
0
 private void Start()
 {
     _notice   = GetComponent <NoticeBehaviour>();
     _bow      = GetComponentInChildren <BowBehaviour>();
     _playerHp = GameObject.FindGameObjectWithTag("Player").GetComponent <HealthBehaviour>();
     _nav      = GetComponent <NavMeshAgent>();
 }
Пример #2
0
 private void Start()
 {
     _nav    = GetComponent <NavMeshAgent>();
     _notice = GetComponent <NoticeBehaviour>();
     _nav.SetDestination(transform.position);
     _nav.ResetPath();
     InvokeRepeating("LookForDestination", 1, .5f);
     if (Target == null)
     {
         Target = GameObject.FindWithTag("Player").transform;
     }
 }
Пример #3
0
 private void Start()
 {
     _nav    = GetComponent <NavMeshAgent>();
     _notice = GetComponent <NoticeBehaviour>();
     CalculateNextTarget();
 }
Пример #4
0
 private void Start()
 {
     _player = GameObject.FindGameObjectWithTag("Player").transform;
     _notice = GetComponent <NoticeBehaviour>();
 }
Пример #5
0
 private void Start()
 {
     _notice = GetComponent <NoticeBehaviour>();
 }