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