Skip to content

Instantly share code, notes, and snippets.

@jimu
Created August 10, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimu/fb85aa15c458934a9e79faf40857cef3 to your computer and use it in GitHub Desktop.
Save jimu/fb85aa15c458934a9e79faf40857cef3 to your computer and use it in GitHub Desktop.
Debugging for kayra yorulmaz
public void OnDrop(PointerEventData Block)
{
Debug("Block.pointerDrag=" + (Block.pointerDrag == null ? "NULL" : "NOT-NULL") +
", Block.pointerDrag.tag='" + Block.pointerDrag.tag +
"', gameObject.tag='" + gameObject.tag + "'");
if (Block.pointerDrag != null && Block.pointerDrag.tag == gameObject.tag)
{
Block.pointerDrag.GetComponent<RectTransform>().anchoredPosition = GetComponent<RectTransform>().anchoredPosition;
DragDrop.isInSpace = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment