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? }
public void OnEndDrag(PointerEventData eventData) { ToggleGlow(false); PuzzlePieceDraggedEvent?.Invoke(false); StartCoroutine(OnDroppedCoroutine()); }