Exemple #1
0
 public LuxuryCar(IVehicle vehicleControls,
             IAudioControl audioControls,
             IOperateSunRoof sunRoofControls)
 {
     _vehicleControls = vehicleControls;
     _audioControls = audioControls;
     _sunRoofControls = sunRoofControls;
 }
Exemple #2
0
 public LuxuryCar(IVehicle vehicleControls,
                  IAudioControl audioControls,
                  IOperateSunRoof sunRoofControls)
 {
     _vehicleControls = vehicleControls;
     _audioControls   = audioControls;
     _sunRoofControls = sunRoofControls;
 }
Exemple #3
0
 void Awake()
 {
     m_AudioController = GameObject.FindGameObjectWithTag("Audio").GetComponent <IAudioControl>();
 }