// Use this for initialization void Start() { if (!car) { car = FindObjectOfType <CND.Car.ArcadeCarController>(); } enabled = car; }
// Use this for initialization void Start() { if (!car) { car = GetComponent <BaseCarController>(); } enabled = car; }
void Awake() { if (!car) { car = GetComponent <BaseCarController>(); } wheels = GetComponentsInChildren <Wheel>(); carState = car.GetComponent <CarStateManager>(); }