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(); }
public int GetMaxMana() { return(mana.GetMaxMana()); }