コード例 #1
0
        void ISelectHandler.OnSelect(BaseEventData eventData)
        {
            var action = new UiSelectActionData();

            action.GroupId   = GroupId;
            action.Sender    = gameObject;
            action.EventData = eventData;
            SendActionData(action);
        }
コード例 #2
0
 void ISelectHandler.OnSelect(BaseEventData eventData)
 {
     if (Singleton.IsTypeRegistered <UnityEventBus> ())
     {
         var action = new UiSelectActionData();
         action.GroupId   = GroupId;
         action.Sender    = gameObject;
         action.EventData = eventData;
         Singleton.Get <UnityEventBus> ().Publish <UiSelectActionData> (action);
     }
 }