using UnityEngine;
|
using UnityEngine.EventSystems;
|
using KTGMGemClient;
|
public class ImageTowerPos : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
{
|
GuideImageBase tmpImageBase;
|
|
public void OnPointerEnter(PointerEventData eventData)
|
{
|
if (tmpImageBase.IsDraging)
|
{
|
tmpImageBase.SetTarget(gameObject);
|
}
|
}
|
|
public void OnPointerExit(PointerEventData eventData)
|
{
|
if (tmpImageBase.IsDraging)
|
{
|
tmpImageBase.SetTarget(null);
|
}
|
}
|
|
public void Init(GuideImageBase imageBase)
|
{
|
tmpImageBase = imageBase;
|
}
|
}
|