public Car(string make, string model, Engine engine) { _make = make; _model = model; _engine = engine; _ca = new CarAnimation(); _da = new Dashboard(this, _engine); _distanceCounter = 0; }
// Start is called before the first frame update void Start() { // Auto Get if (carMovement == null) { carMovement = GetComponent <CarMovement>(); } if (carAnimation == null) { carAnimation = GetComponent <CarAnimation>(); } }