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.
18 lines
474 B
C#
18 lines
474 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(150f, 275f)] public float maxSpeed;
|
|
[Range(10f, 25f)] public float acceleration;
|
|
[Range(20f, 60f)] public float handling;
|
|
[Range(40f, 120f)] public float traction;
|
|
public GameObject carPrefab;
|
|
|
|
}
|