public void OnEndDrag(PointerEventData EventData) { // 穿透问题 // if (EventData.rawPointerPress != null && gameObject != EventData.rawPointerPress) // { // return; // } EventCallback_?.Invoke(new EventSystemData(EventData)); EventCallbackEx_?.Invoke(); }
public void OnPointerUp(PointerEventData EventData) { // 穿透问题 if (EventData.rawPointerPress != null && gameObject != EventData.rawPointerPress) { return; } EventCallback_?.Invoke(new EventSystemData(EventData)); EventCallbackEx_?.Invoke(); }
public void OnCancel(BaseEventData EventData) { EventCallback_?.Invoke(null); EventCallbackEx_?.Invoke(); }