//--------------------------------------
 //  Methods
 //--------------------------------------
 ///<summary>
 ///	Use this for initialization
 ///</summary>
 void Start()
 {
     _carInputComponent           = car.GetComponent <CarInputComponent>();
     buttonClick_audiosource      = GetComponent <AudioSource>();
     buttonClick_audiosource.clip = buttonClick_audioclip;
 }
示例#2
0
		//--------------------------------------
		//  Methods
		//--------------------------------------		
		///<summary>
		///	Use this for initialization
		///</summary>
		void Start () 
		{
			_carInputComponent = car.GetComponent<CarInputComponent>();
			buttonClick_audiosource = GetComponent<AudioSource>();
			buttonClick_audiosource.clip = buttonClick_audioclip;
		}