using System.Collections; using System.Collections.Generic; using UnityEngine; public class FuelManager : MonoBehaviour { [Range(0f,100f)] public float FuelLevel; public float FuelConsumption = 1; void Update() { if(FuelLevel >0){ FuelLevel-=Time.deltaTime; } } }