using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using System; namespace BF { public class UIDragEvent : UITouchEvent, IDragHandler { public void OnDrag(PointerEventData eventData) { if (!enable) { return; } if (currentPointerId != eventData.pointerId) { return; } if (luaFunc != null) { luaFunc((int)UITouchEventType.Drag, eventData.position.x, eventData.position.y); } } } }