Пример #1
0
 public void OnEndDrag(PointerEventData eventData)
 {
     if (!eventData.IsLeftClick())
     {
         return;
     }
     PointerEndDrag();
 }
Пример #2
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (!eventData.IsLeftClick())
     {
         return;
     }
     PointerClick();
 }
Пример #3
0
 public void OnPointerClick(PointerEventData clickEvent)
 {
     Log.MethodEnteredWith(clickEvent.button);
     if (clickEvent.IsLeftClick())
     {
         var pos = clickEvent.localPosition(ignoreGlobalScale: true);
         OnCicleCreated.Invoke(new Task6_CircleDrawer.MyCircle(Guid.NewGuid().ToString(), pos.x, pos.y, diameter: 1));
     }
 }