| | |
| | | using UnityEngine.EventSystems; |
| | | using KTGMGemClient; |
| | | |
| | | public class ImageWater : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragHandler |
| | | public class ImageWater : GuideImageBase, IDragHandler, IBeginDragHandler, IEndDragHandler |
| | | { |
| | | RectTransform rectTransform;//自身Rect |
| | | GameObject target;//推拽到塔位置的标识 |
| | |
| | | tmpImage = GetComponent<Image>(); |
| | | |
| | | } |
| | | public void SetTarget(GameObject target) |
| | | public override void SetTarget(GameObject target) |
| | | { |
| | | this.target = target; |
| | | } |
| | | bool isDraging; |
| | | public bool IsDraging |
| | | { |
| | | get |
| | | { |
| | | return isDraging; |
| | | } |
| | | } |
| | | |
| | | Vector3 dragPos;//开始拖拽的临时变量 |
| | | public void OnDrag(PointerEventData eventData) |
| | | { |