public void ValidatePokemonChoice(int id) { PkmId = id; PokemonSelectionCanvas.gameObject.SetActive(false); if (id != -1) { SelectionPokemon.Setup(PokedexManager.instance.GetPokemonEntity(id)); } }
private void SetupButtons() { for (int i = 0; i < itemList.Count; i++) { Pokemon item = itemList[i]; GameObject newButton = buttonObjectPool.GetObject(); newButton.transform.SetParent(contentPanel); PokedexItem sampleButton = newButton.GetComponent <PokedexItem>(); sampleButton.Setup(item); } }