public void OnEndDrag(PointerEventData eventData) { Debug.Log("DECK: OnEndDrag"); dragHandlerScript.OnEndDrag(eventData); instantiatedChild = null; dragHandlerScript = null; //count--; //eventData.pointerDrag.transform.SetParent(parentToReturnTo); ////instance.transform.SetParent(parentToReturnTo); //////instance.GetComponent<CanvasGroup>().blocksRaycasts = true; //objects.transform.SetParent(parentToReturnTo); //objects.GetComponent<CanvasGroup>().blocksRaycasts = true; //transform.localPosition = Vector3.zero; }