Unity Image Fill Setter
public class ImageFillSetter : MonoBehaviour {
public FloatReference Variable;
public FloatReference Max;
public Image image;
private void Update() {
Image.fillAmount = Mathf.Clamp(Variable.Value / Max.Value);
}
}