Example #1
0
    void Start()
    {
        deckController = GetComponentInChildren <DeckController>();
        packController = GetComponentInChildren <PackController>();

        deckCards = DataController.Instance.GetCardService().DeckCards;
        deckController.deckCards = deckCards;
        deckController.CreateDeck();

        packCards = DataController.Instance.GetCardService().PackCards;
        packController.packCards = packCards;
        packController.CreatePack();
    }
 //Do shuffle when it's has 20 cards left/
 public void ShuffleDeck()
 {
     _deck.CreateDeck(maxDeck);
     _deck.Shuffle();
     _deck.ShowCards(false);
 }