public void InitDeck(List <LessonTypes> selectedLessons)
        {
            List <BaseCard> cards;

            if (GameManager.DebugModeEnabled)
            {
                var prebuiltCards = GameManager.GetPlayerTestDeck(NetworkId);
                cards = DeckGenerator.GenerateDeck(prebuiltCards, selectedLessons);
            }
            else
            {
                cards = DeckGenerator.GenerateDeck(selectedLessons);
            }

            Deck.Initialize(cards, DeckGenerator.GetRandomCharacter());
        }
Exemple #2
0
        public void InitDeck(List <LessonTypes> selectedLessons)
        {
            prebuiltCards = GameManager.GetPlayerTestDeck(NetworkId);
            Debug.Log(prebuiltCards.ToString());
            List <BaseCard> cards;
            BaseCard        startingCharacter;

            if (GameManager.DebugModeEnabled)
            {
                DrawInitialHand();
                //cards = DeckGenerator.GenerateDeck(selectedLessons);
                //cards = DeckGenerator.GenerateDeck(prebuiltCards, selectedLessons);
                //startingCharacter = GameManager.GetPlayerTestCharacter(NetworkId);
            }
            else
            {
                cards             = DeckGenerator.GenerateDeck(selectedLessons);
                startingCharacter = DeckGenerator.GetRandomCharacter();
            }

            //Deck.Initialize( cards, startingCharacter);
        }