Exemple #1
0
    public IEnumerator UpdateHP()
    {
        if (_pokemon.HpChanged)
        {
            yield return(hpbar.SetHPSmooth((float)_pokemon.HP / _pokemon.Maxhp));

            _pokemon.HpChanged = false;
        }
    }
Exemple #2
0
    public IEnumerator UpdateHP()
    {
        if (_pokemon.HpChanged)
        {
            yield return(hpBar.SetHPSmooth(_pokemon.CurrentHP, _pokemon.MaxHP));

            _pokemon.HpChanged = false;
        }
    }
 public IEnumerator UpdateHP()
 {
     yield return(hpBar.SetHPSmooth(_pokemon.CurrentHP, _pokemon.MaxHP));
 }