示例#1
0
    void Start()
    {
        foreach (CardData card in LibraryManager.DrawActions(4))
        {
            Debug.Log(card.title);
            Deck.SubmitAction(card);
        }

        foreach (CardData card in LibraryManager.DrawTouches(2))
        {
            Debug.Log(card.title);
            Deck.SubmitTouch(card);
        }

        foreach (CardData card in LibraryManager.DrawBondages(2))
        {
            Debug.Log(card.title);
            Deck.SubmitBondage(card);
        }

        foreach (CardData card in Deck.deckActions)
        {
            Debug.Log(card.title);
        }

        foreach (CardData card in Deck.deckBondages)
        {
            Debug.Log(card.title);
        }

        foreach (CardData card in Deck.deckTouches)
        {
            Debug.Log(card.title);
        }
    }
示例#2
0
 public void Spawn()
 {
     if (fromDeck)
     {
         if (fromBondages)
         {
             InstantiateDeck(Deck.deckBondages);
         }
         if (fromTouches)
         {
             InstantiateDeck(Deck.deckTouches);
         }
         if (fromActions)
         {
             InstantiateDeck(Deck.deckActions);
         }
     }
     else
     {
         if (fromBondages)
         {
             InstantiateDeck(LibraryManager.DrawBondages(drawCount));
         }
         if (fromTouches)
         {
             InstantiateDeck(LibraryManager.DrawTouches(drawCount));
         }
         if (fromActions)
         {
             InstantiateDeck(LibraryManager.DrawActions(drawCount));
         }
     }
 }
示例#3
0
    // 0 - bondage
    // 1 - touches
    // 2 - actions
    public void Spawn(int fromWhere, bool deck, int count)
    {
        currentWhere = fromWhere;
        switch (fromWhere)
        {
        case 0:
        {
            if (deck)
            {
                InstantiateDeck(Deck.deckBondages);
            }
            else
            {
                InstantiateDeck(LibraryManager.DrawBondages(count));
            }
        }
        break;

        case 1:
        {
            if (deck)
            {
                InstantiateDeck(Deck.deckTouches);
            }
            else
            {
                InstantiateDeck(LibraryManager.DrawTouches(count));
            }
        }
        break;

        case 2:
        {
            if (deck)
            {
                InstantiateDeck(Deck.deckActions);
            }
            else
            {
                InstantiateDeck(LibraryManager.DrawActions(count));
            }
        }
        break;
        }
    }