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