public IEnumerator AddPokemon(PokemonPackage package) { Trainer player = event_manager.GetPlayerTrainer(); Pokemon.Pokemon new_pokemon = new Pokemon.Pokemon(package.species, package.level, package.form_id); player.AddPokemonToParty(new_pokemon); yield return(new WaitForSeconds(0.5f)); effect_playing = false; }