Пример #1
0
 //--------------------------------------
 //  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;
		}