public void UpdateUI() { PList = Pokemon_Party.GetPokemonList(); for (int i = 0; i < PList.Count; i++) { ButtonPartent.transform.GetChildren()[i].GetComponentInChildren <PokemonParty_Button>().AddtoUI(PList[i]); //Logger.Debug(GetType(), PList[i].Name); } }
public void OnClick() { BasePokemon[] newList = new BasePokemon[1]; newList[0] = Encounter_Manager.GetEncounter(Place.Route1); Pokemon_Party.AddPokemonToParty(Encounter_Manager.GetEncounter(Place.Route1)); //Logger.Debug(GetType(), "'" + Pokemon.Name + "' got choosen."); BattleManager.GetComponent <Battle_Manager>().StartBattle(Pokemon_Party.List, newList); }
static public void Encounter(Place newPlace) { PlaceData PlaceData = PlaceData.GetData(newPlace); Logger.Debug(MethodBase.GetCurrentMethod().DeclaringType, "Starting 'Encounter' ..."); Logger.Debug(MethodBase.GetCurrentMethod().DeclaringType, "Place: " + PlaceData.Name); PokemonData PokemonData = PokemonData.GetData(GetByRarity(PlaceData)); Logger.Debug(MethodBase.GetCurrentMethod().DeclaringType, "Monster: " + PokemonData.GeneralInformation.Name); BasePokemon Pokemon = GetPokemon(PokemonData, PlaceData); Pokemon_Party.AddPokemonToParty(Pokemon); }
void Party() { Pokemon_Party.AddPokemonToParty(Pokemon); //meObject.FindGameObjectWithTag("PokemonParty").GetComponent<PokemonParty>().MList.Add(GetComponent<BasePokemon>().Monster); }