audio source unity play code example
Example 1: play sound unity
AudioSource audioData;
void Start()
{
audioData = GetComponent<AudioSource>();
audioData.Play(0);
Debug.Log("started");
}
Example 2: unity audio source
m_MyAudioSource.Play();
Example 3: unity audio source
m_MyAudioSource.Play();y();