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