public void InvokePointerClick(Vector2 pointerPosition) { if (PointerClick != null) { PointerClick.Invoke(this, new PointerGraphicalElementEventArgs(pointerPosition)); } }
private void OnPointerClick(EventSystemData Data) { if (!IsClick_) { return; } PointerClick?.Invoke(); CheckDoubleClick(); }
public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { onLeftClick.Invoke(); } else if (eventData.button == PointerEventData.InputButton.Right) { onRightClick.Invoke(); } else if (eventData.button == PointerEventData.InputButton.Middle) { onMiddleClick.Invoke(); } }
public virtual void OnPointerClick(PointerEventArgs e) { PointerClick?.Invoke(this, e); }
public void OnPointerClick(PointerEventData eventData) { PointerClick?.Invoke(this); }