Ejemplo n.º 1
0
 public Car(string make, string model, Engine engine)
 {
     _make            = make;
     _model           = model;
     _engine          = engine;
     _ca              = new CarAnimation();
     _da              = new Dashboard(this, _engine);
     _distanceCounter = 0;
 }
Ejemplo n.º 2
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>();
     }
 }