public void OnEndDrag(PointerEventData eventData) { if (!eventData.IsLeftClick()) { return; } PointerEndDrag(); }
public void OnPointerClick(PointerEventData eventData) { if (!eventData.IsLeftClick()) { return; } PointerClick(); }
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)); } }