// Start is called before the first frame update
 void Start()
 {
     target = scr_findplayer.instance.player.transform;
     agent  = GetComponent <NavMeshAgent>();
     anim   = GetComponent <Animator>();
     scr_UI = FindObjectOfType(typeof(scr_UI)) as scr_UI;
 }
Esempio n. 2
0
 private void Awake()
 {
     UI = this;
 }