// Update is called once per frame void Update() { healthSlider.maxValue = stats.getMaxHealth(); manaSlider.maxValue = stats.getMaxMana(); xpSlider.maxValue = stats.getMaxExp(); //Sliders need to be initialised under the ui to accomodate visual changes healthSlider.value = stats.getHealth(); manaSlider.value = stats.getMana(); xpSlider.value = stats.getExp(); }