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); }
public void EnemySpawnEvent() { ActualChance = 100 / BaseChance; RandomFL = Random.Range(0, ActualChance); if (RandomFL == 0) { Encounter_Manager.Encounter(Place); } else { //nothing happens //Debug.Log(RandomFL); } }