play sound on collision unity c#

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

Also in C#: