I think what you may want to do is have code like this pseudo-code below on the object you want to update the information in the slider:
private Slider health;
private Slider mana;
private Slider thirdThing;
public float healthValue;
public float manaValue;
public float thirdThingValue;
void Start()
{
health = GameObject.Find("Slider1Name").GetComponent();
mana = GameObject.Find("Slider2Name").GetComponent();
thirdThing = GameObject.Find("Slider3Name").GetComponent();
}
Update()
{
health.value = healthValue;
mana.value = manaValue;
thirdThing.value = thirdThingValue;
}
↧