You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Driftology/Assets/Scripts/CarData.cs

16 lines
425 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "NewCarData", menuName = "Car/CarData")]
public class CarData : ScriptableObject
{
[Header("Basic Info")]
public string carName;
public Sprite carIcon;
[Header("Performance Stats")]
[Range(0.1f, 2f)] public float nitro;
[Range(500f, 2000f)] public float power;
[Range(3f, 10f)] public float handling;
[Range(3f, 10f)] public float traction;
}