public void OnPointerClick(PointerEventData eventData) { if (eventData != null && eventData.button == PointerEventData.InputButton.Right) { OnRightClickEvent?.Invoke(this); } }
public virtual void OnRightClick() { gameObject.OnRightClick(); OnRightClickEvent?.Invoke(this, null); }
public void OnPointerClick(PointerEventData eventData) { OnRightClickEvent?.Invoke(this); }