示例#1
0
        void IDeselectHandler.OnDeselect(BaseEventData eventData)
        {
            var action = new UiDeselectActionData();

            action.GroupId   = GroupId;
            action.Sender    = gameObject;
            action.EventData = eventData;
            SendActionData(action);
        }
 void IDeselectHandler.OnDeselect(BaseEventData eventData)
 {
     if (Singleton.IsTypeRegistered <UnityEventBus> ())
     {
         var action = new UiDeselectActionData();
         action.GroupId   = GroupId;
         action.Sender    = gameObject;
         action.EventData = eventData;
         Singleton.Get <UnityEventBus> ().Publish <UiDeselectActionData> (action);
     }
 }