using UnityEngine;
|
using UnityEngine.EventSystems;
|
using KTGMGemClient;
|
public class ImageTowerPos : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
{
|
ImageFire1 imageFire1;
|
|
public void OnPointerEnter(PointerEventData eventData)
|
{
|
if (imageFire1.IsDraging)
|
{
|
imageFire1.SetTarget(gameObject);
|
}
|
}
|
|
public void OnPointerExit(PointerEventData eventData)
|
{
|
if (imageFire1.IsDraging)
|
{
|
imageFire1.SetTarget(null);
|
}
|
}
|
|
// Start is called before the first frame update
|
void Start()
|
{
|
imageFire1 = transform.parent.Find("Image_Fire1").GetComponent<ImageFire1>();
|
}
|
|
|
}
|