예제 #1
0
        void IDropHandler.OnDrop(PointerEventData eventData)
        {
            var action = new UiDropActionData();

            action.GroupId   = GroupId;
            action.Sender    = gameObject;
            action.EventData = eventData;
            SendActionData(action);
        }
예제 #2
0
 void IDropHandler.OnDrop(PointerEventData eventData)
 {
     if (Singleton.IsTypeRegistered <UnityEventBus> ())
     {
         var action = new UiDropActionData();
         action.GroupId   = GroupId;
         action.Sender    = gameObject;
         action.EventData = eventData;
         Singleton.Get <UnityEventBus> ().Publish <UiDropActionData> (action);
     }
 }