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