예제 #1
0
    public void TransferCard(AbilityCard card, DeckType destination)
    {
        AbilityDeck targetDeck = deckManager.GetDeck(destination);

        if (targetDeck.IsDeckFull())
        {
            Debug.Log("Target Deck is Full");
            return;
        }

        TransferCard(card, targetDeck);
    }
예제 #2
0
    public void TransferCard(AbilityCard card, AbilityDeck destination)
    {
        if (destination.IsDeckFull())
        {
            Debug.Log("Target Deck is Full");
            return;
        }

        //Debug.Log("transfering a card from " + card.currentDeck.deckType + " to " + destination.deckType);

        card.previousDeck = this;
        card.currentDeck  = destination;

        RemoveCard(card);
        destination.Addcard(card);
    }