// Start is called before the first frame update void Start() { CardData cardData = gameObject.GetComponent <CardData>(); CreateCards(); DefineCards(); deck1Definition = playerDeck.GetComponent <Deck1Definition>(); deck1Definition.setDeck1(); }
// Start is called before the first frame update void Start() { //initialized for calling the carddata and deck1definition scripts cardData = cards.GetComponent <CardData>(); deck1Definition = playerDeck.GetComponent <Deck1Definition>(); //resizes the cardsLeft array to the ammount of cards in a deck //this was done seprately and not when the array was created bc that would be a long line Array.Resize(ref cardsLeft, 25); deck1Definition.deck1.CopyTo(cardsLeft, 0); }