Esempio n. 1
0
 public void InvokePointerClick(Vector2 pointerPosition)
 {
     if (PointerClick != null)
     {
         PointerClick.Invoke(this, new PointerGraphicalElementEventArgs(pointerPosition));
     }
 }
Esempio n. 2
0
        private void OnPointerClick(EventSystemData Data)
        {
            if (!IsClick_)
            {
                return;
            }

            PointerClick?.Invoke();
            CheckDoubleClick();
        }
Esempio n. 3
0
 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);
 }
Esempio n. 5
0
 public void OnPointerClick(PointerEventData eventData)
 {
     PointerClick?.Invoke(this);
 }