Esempio n. 1
0
 public void ValidatePokemonChoice(int id)
 {
     PkmId = id;
     PokemonSelectionCanvas.gameObject.SetActive(false);
     if (id != -1)
     {
         SelectionPokemon.Setup(PokedexManager.instance.GetPokemonEntity(id));
     }
 }
Esempio n. 2
0
    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);
        }
    }