Project_WL/Assets/Script/HUD/SaveNPCToolTip.cs

29 lines
644 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SaveNPCToolTip : MonoBehaviour
{
bool isClick;
public void Set(Transform _target)
{
var follow = GetComponent<UIFollowTarget_Ino>();
follow.target = _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]);
}
}