// Update is called once per frame void Update() { if (fuelTankConnected) { fuelTank.Fill(fillSpeed * Time.deltaTime); } }