public void UpdateStats(Health h, Mana m, Action a)
    {
        healthbarSlider.maxValue = h.GetMaxHealth();
        healthbarSlider.value    = h.GetCurrentHealth();
        healthbarLabel.text      = healthbarSlider.value + "/" + healthbarSlider.maxValue;

        manabarSlider.maxValue = m.GetMaxMana();
        manabarSlider.value    = m.GetCurrentMana();
        manabarLabel.text      = manabarSlider.value + "/" + manabarSlider.maxValue;

        actionLabel.text = a.GetCurrentAction().ToString();
    }
Example #2
0
 public int GetCurrentMana()
 {
     return(mana.GetCurrentMana());
 }