// 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; }
private void Awake() { UI = this; }