void IBeginDragHandler.OnBeginDrag(PointerEventData eventData) { var action = new UiBeginDragActionData(); action.GroupId = GroupId; action.Sender = gameObject; action.EventData = eventData; SendActionData(action); }
void IBeginDragHandler.OnBeginDrag(PointerEventData eventData) { if (Singleton.IsTypeRegistered <UnityEventBus> ()) { var action = new UiBeginDragActionData(); action.GroupId = GroupId; action.Sender = gameObject; action.EventData = eventData; Singleton.Get <UnityEventBus> ().Publish <UiBeginDragActionData> (action); } }