Пример #1
0
    public void CloseCard(CardData card)
    {
        CardView closeCardView = null;

        foreach (CardView cv in handCard)
        {
            if (cv.card == card)
            {
                closeCardView = cv;
                break;
            }
        }
        if (!closeCardView)
        {
            Debug.LogError("CloseHandCard : can't find cardView gameobject");
        }

        closeCardView.ClearCard();
        disableCard.Add(closeCardView);
        handCard.Remove(closeCardView);

        //closeCardView.transform.position = cardViewpool.transform.position;
        closeCardView.SetPos(cardViewpool.transform.position);
        //closeCardView.SetPos(cemeteryTransform.transform.position);
    }