private void PopulateDeckSelector() { int i = 0; foreach (GameObject deck in GameManager.instance.player1Decks) { Deck deckInfo = deck.GetComponent <Deck>(); GameObject newDeckSelect = Instantiate(deckSelectButton, transform.position, Quaternion.identity); newDeckSelect.transform.SetParent(deckSelectParent); DeckSelectItem deckSelectItem = newDeckSelect.GetComponent <DeckSelectItem>(); deckSelectItem.deck = deckInfo.deck; deckSelectItem._name = deck.GetComponent <Deck>()._name; deckSelectItem.index = i; deckSelectItem.GetComponentInChildren <TextMeshProUGUI>().text = deckInfo._name; i++; } }
public void SetComputerDeck(DeckSelectItem deckItem) { }