Example #1
0
 public void SetData(Pokemon pokemon)
 {
     _pokemon       = pokemon;
     nameText.text  = "<b>" + pokemon.Base.Name + "</b>";
     levelText.text = "<b>" + pokemon.Level + "</b>";
     hpBar.SetHP((float)pokemon.HP / pokemon.MaxHP);
 }
    public void setData(Pokemon pokemon)
    {
        _pokemon = pokemon;

        nameText.text  = pokemon.Base.Name;
        levelText.text = "Lvl " + pokemon.Level;
        hpBar.SetHP(pokemon.CurrentHP, pokemon.MaxHP);
    }
Example #3
0
    public void SetData(PokemonLevel pokemon)
    {
        _pokemon = pokemon;

        nameText.text  = pokemon.Base.Name;
        LevelText.text = "Lvl" + pokemon.Level;
        hpbar.SetHP((float)pokemon.HP / pokemon.Maxhp);
    }
Example #4
0
    public void setData(Pokemon pokemon)
    {
        _pokemon = pokemon;

        nameText.text  = pokemon.Base.Name;
        levelText.text = "Lvl " + pokemon.Level;
        hpBar.SetHP(pokemon.CurrentHP, pokemon.MaxHP);


        statusColors = new Dictionary <ConditionID, Color>()
        {
            { ConditionID.psn, psnColor },
            { ConditionID.par, parColor },
            { ConditionID.frz, frzColor },
            { ConditionID.slp, slpColor },
            { ConditionID.brn, brnColor }
        };

        SetStatusText();
        _pokemon.OnStatusChanged += SetStatusText;
    }