public class RotateEvent : MonoBehaviour , IPointerClickHandler, IBeginDragHandler, IDragHandler, IEndDragHandler
{
public void OnBeginDrag(PointerEventData eventData)
{
Debug.Log(eventData);
Debug.Log("拖拽開始");
}
// during dragging
public void OnDrag(PointerEventData eventData)
{
Debug.Log(eventData);
Debug.Log("拖拽中");
}
// end dragging
public void OnEndDrag(PointerEventData eventData)
{
Debug.Log(eventData);
Debug.Log("拖拽擡起");
}
}