using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public enum Npcstate { idle, dead, run } public class RecuseNpc : MonoBehaviour { public static RecuseNpc instance; 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() { instance = this; recusebtn = GameObject.Find("Canvas/Recuse").GetComponent