using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
public class DayRotateClick : MonoBehaviour,IBeginDragHandler,IEndDragHandler,IDragHandler ,IPointerClickHandler{
//按住该脚本依附的对象开始拖动时
public void OnBeginDrag(PointerEventData eventData)
{
print("OnBeginDrag");
}
//按住该脚本依附的对象托且动时
public void OnDrag(PointerEventData eventData)
{
print("OnDrag");
}
//结束多动时调用
public void OnEndDrag(PointerEventData eventData)
{
print("OnEndDrag");
}
//点击时触发
public void OnPointerClick(PointerEventData eventData)
{
print("OnPointerClick");
}
void Start () {
}
void Update () {
}
}
FR:徐海涛(hunk Xu)
QQ技术交流群:386476712