Exemple #1
0
 void BuildCard(CardController card)
 {
     card.deckController = this.transform.GetComponent<Deck>();
     card.CardSpeed = cardsInHand.Count;
     card.CardDirectionValue = cardsInHand.Count - 1;
     card.CardDirectionIsRight = cardsInHand.Count % 2 == 0 ? true : false;
     card.CardDescriptionText = "Description Text \n Goes Here";
     card.targetPosition = transform.position;
     card.cardFront = ReturnCardFront(card.CardDirectionValue, card.CardDirectionIsRight, card);
     card.SetHandController(transform.GetComponent<AiHandController>());
 }