コード例 #1
0
    public void SwitchCardState(CardData card, bool isReserved)
    {
        if (isReserved)
        {
            reserveDeck.RemoveCard(card);
            currentDeck.AddCard(card);

            numToReserve++;
        }
        else if (numToReserve > 0)
        {
            currentDeck.RemoveCard(card);
            reserveDeck.AddCard(card);

            numToReserve--;
        }

        RefreshCardLists();
    }