using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public enum Npcstate { idle, dead, healthy } public class RecuseNpc : MonoBehaviour { private Button recusebtn; private bool statebool = false; private Animator anim; private Npcstate nstate = Npcstate.dead; private bool movebool = false; private Transform target; private void Awake() { recusebtn = GameObject.Find("Canvas/Recuse").GetComponent