Check out example codes for "play sound on collision unity c#". It will help you in understanding the concepts better.

Code Example 1

void Start ()
 {
     saw = GameObject.FindObjectOfType<AudioSource>();
 }
 
 void Update ()
 {
 }
 void OnCollisionEnter(Collision col)
 {
     if(col.gameObject)
     {
         saw.Play();
         Debug.Log("Nurrrr");
     }
 }

Learn ReactJs, React Native from akashmittal.com