Beispiel #1
0
        public static SkillCardDeck createInitiatedDeck(Type type)
        {
            SkillCardDeck deck = new SkillCardDeck(type);

            deck.init();
            return(deck);
        }
Beispiel #2
0
        // Start is called before the first frame update
        void Start()
        {
            SkillCardDeck deck = SkillCardDeck.createInitiatedDeck(Type.YELLOW);

            deck.shuffle();
            deck.sort();
            ;
        }
Beispiel #3
0
 private void fillDecks()
 {
     skillCards[SkillCard.Type.BLUE]   = SkillCardDeck.createInitiatedDeck(SkillCard.Type.BLUE);
     skillCards[SkillCard.Type.GREEN]  = SkillCardDeck.createInitiatedDeck(SkillCard.Type.GREEN);
     skillCards[SkillCard.Type.PURPLE] = SkillCardDeck.createInitiatedDeck(SkillCard.Type.PURPLE);
     skillCards[SkillCard.Type.RED]    = SkillCardDeck.createInitiatedDeck(SkillCard.Type.RED);
     skillCards[SkillCard.Type.YELLOW] = SkillCardDeck.createInitiatedDeck(SkillCard.Type.YELLOW);
 }