//public void OnBeginDrag(BaseEventData eventData) //{ // var g = EventSystem.current.currentSelectedGameObject; // UGUIEvent.onCancelHandle(g, eventData); //} public void OnDrag(BaseEventData eventData) { var g = EventSystem.current.currentSelectedGameObject; PointerEventData ped = eventData as PointerEventData; UGUIEvent.onDragHandle(g, ped.delta); }
public void OnPointerClick(BaseEventData eventData) { //PointerEventData ped = eventData as PointerEventData; var g = EventSystem.current.currentSelectedGameObject; UGUIEvent.onClickHandle(g, eventData); }
public void OnPointerClick(BaseEventData eventData) { //PointerEventData ped = eventData as PointerEventData; var g = eventData.selectedObject; UGUIEvent.onClickHandle(g, eventData); }
//public void OnBeginDrag(BaseEventData eventData) //{ // var g = EventSystem.current.currentSelectedGameObject; // UGUIEvent.onCancelHandle(g, eventData); //} public void OnDrag(BaseEventData eventData) { var g = eventData.selectedObject; PointerEventData ped = eventData as PointerEventData; UGUIEvent.onDragHandle(g, ped.delta); }
public void OnButtonClick(Object arg) { var g = EventSystem.current.currentSelectedGameObject; UGUIEvent.onClickHandle(g, arg); //Debug.Log("you are click "+g); }
public void OnCancel(BaseEventData eventData) { var g = EventSystem.current.currentSelectedGameObject; UGUIEvent.onCancelHandle(g, eventData); }
public void OnPointerUp(BaseEventData eventData) { var g = EventSystem.current.currentSelectedGameObject; UGUIEvent.onPressHandle(g, eventData); }
public void OnCustomerEvent(MonoBehaviour arg) { var g = EventSystem.current.currentSelectedGameObject; UGUIEvent.onCustomerHandle(g, arg); //Debug.Log("you are click "+g); }
public void OnCancel(BaseEventData eventData) { var g = eventData.selectedObject; UGUIEvent.onCancelHandle(g, eventData); }
public void OnSelect(BaseEventData eventData) { var g = eventData.selectedObject; UGUIEvent.onSelectHandle(g, eventData); }
public void OnPointerUp(BaseEventData eventData) { var g = eventData.selectedObject; UGUIEvent.onPressHandle(g, eventData); }