30 lines
685 B
C#
30 lines
685 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.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]);
|
|
}
|
|
} |