Beispiel #1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (eventData.button == PointerEventData.InputButton.Left)
     {
         LeftClick.SafeInvoke();
     }
     else if (eventData.button == PointerEventData.InputButton.Right)
     {
         RightClick.SafeInvoke();
     }
 }