// Update is called once per frame void Update() { slider.value = cc.getLoad() * 1.0f / cc.containerSpace; }