Example #1
0
    public void OnEndDrag(PointerEventData eventData)
    {
        Debug.Log("OnEndDrag");
        this.transform.SetParent(parentToReturnTo);
        GetComponent <CanvasGroup>().blocksRaycasts = true;


        string location = dz.Decision();

        Debug.Log(location);

        if (location == "Hand")
        {
            this.gameObject.GetComponent <Image>().sprite = spriteMae;
        }
        else
        {
            this.gameObject.GetComponent <Image>().sprite = spriteAto;
        }
    }