コード例 #1
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     _canvasGroup.blocksRaycasts       = false;
     _rectTransform.transform.position = GameManager.MainCamera.ScreenToWorldPoint(Input.mousePosition);
     PuzzlePieceDraggedEvent?.Invoke(true);
     //ToggleHintEvent?.Invoke(_localizedHintText); // TODO what hint box behaviour is desirable here: disable when dragging, enable when dragging or keep as is?
 }
コード例 #2
0
 public void OnEndDrag(PointerEventData eventData)
 {
     ToggleGlow(false);
     PuzzlePieceDraggedEvent?.Invoke(false);
     StartCoroutine(OnDroppedCoroutine());
 }