how to get audio source in unity code example
Example 1: unity audio source
m_MyAudioSource.Play();y();
Example 2: access audio source from gameobject unity
AudioSource source1 = GameObject.FindGameObjectWithTag("GameObject1").GetComponent<AudioSource>();
GetComponent<AudioSource>().clip = source1.clip;