HillClimb/Assets/Scripts/FuelManager.cs
2023-01-20 02:22:00 +05:30

19 lines
323 B
C#

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;
}
}
}