GetMaxMana() public method

public GetMaxMana ( ) : float
return float
    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();
    }
示例#2
0
 public int GetMaxMana()
 {
     return(mana.GetMaxMana());
 }