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