using System.Collections; using System.Collections.Generic; using UnityEngine; public enum DriveState { Line = 0, Turn } public class Drive : MonoBehaviour { public bool isnormalDrive = true; public DriveState dirveState = DriveState.Line; [HideInInspector] public float drivetime = 0f; public int carId = 0; public GameObject FrontCar=null; }