Exemple #1
0
    public void CombineDecks()
    {
        deck.ClearDeck();
        deck.ClearReferenceDeck();

        foreach (BaseUnit unit in party)
        {
            foreach (CardData cardData in unit.DeckList.ReferenceDeck)
            {
                deck.AddCardToReferenceDeck(cardData);
            }
        }

        foreach (CardData cardData in deck.ReferenceDeck)
        {
            Debug.Log(cardData.Title);
        }
    }