using System.Collections; using System.Collections.Generic; using UnityEngine; public class SaveNPCToolTip : MonoBehaviour { bool isClick; public void Set(Transform _target) { var follow = GetComponent(); follow.target = _target; follow.isTarget = follow.target; follow.offSet = Vector3.up * 70f; follow.runUpdate = true; } public bool Get_Click() { return isClick; } public void Off() { gameObject.SetActive(false); isClick = true; } public void OnClick_SaveNPC() { Off(); //PCInfo.Ins.Set_QuestMobTarget(SaveNPCMgr.Ins.Get_QuestMobs()[0]); } }