// Update is called once per frame void Update() { fuelUIPanel.fillAmount = playerSubmarine.GetFuelRatio(); airUIPanel.fillAmount = playerSubmarine.GetAirRatio(); }