示例#1
0
//gives item to player based
    public void givePokemon(int id)
    {
        Pokemon pokemon = pokemon_db.getPokemon(id); //lookup item by id in db

        char_pokemon.Add(pokemon);
        Debug.Log(" Gave Pokemon: " + pokemon.name); // post to console
    }