Exemplo n.º 1
0
    public void OnBeginDrag(PointerEventData eventData)
    {
        playerHand.SetCardsHandRaycast(false);
        handBoard.SetHandRaycast(false);
        GetComponent <Image>().raycastTarget = false;

        transform.SetAsLastSibling();
        transform.GetChild(0).rotation = Quaternion.identity;

        actualCard.ChangeSize(handlingCardSize, 2f);
        playerHand.RemoveCard(actualCard.posInHand);
    }