예제 #1
0
    public void collect(Unit collector)
    {
        //give them a loot card
        Card_Loot card = (Card_Loot)CardManager.instance.getCardFromIdName("loot");

        card.lootSetup(level);
        card.setup(collector, collector.deck);
        collector.deck.addCardToHand(card);

        //mark that we're done
        isDone = true;
    }
    void createDummyLoot()
    {
        lootList = new List <Card_Loot> ();
        for (int i = 1; i < 6; i++)
        {
            int       level = (i % 2) + 1;
            Card_Loot card  = (Card_Loot)CardManager.instance.getCardFromIdName("loot");
            card.lootSetup(level);
            card.setup(null, null);
            lootList.Add(card);
        }

        Debug.Log("did it");
    }