public void UpdateUI() { //If u get an exception here it´s probably because u loaded wrong scene without debug mode. airLevel.fillAmount = shipSystem.AirLevel * 0.01f; energyLevel.fillAmount = shipSystem.CurrentEnergy * 0.01f; specificControl.UpdateUI(); }