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); }
public void SetData(PokemonLevel pokemon) { _pokemon = pokemon; nameText.text = pokemon.Base.Name; LevelText.text = "Lvl" + pokemon.Level; 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); statusColors = new Dictionary <ConditionID, Color>() { { ConditionID.psn, psnColor }, { ConditionID.par, parColor }, { ConditionID.frz, frzColor }, { ConditionID.slp, slpColor }, { ConditionID.brn, brnColor } }; SetStatusText(); _pokemon.OnStatusChanged += SetStatusText; }