Playing a sound while playing an animation?

Hi, I want to play a sound effect once my character’s animations are played. Thank you.

write a script that does something like this…(this is in c#)

public AudioClip sound;

yield return new WaitForSeconds(animation.clip.length);
audio.play();

don’t forget to drag and drop your audio clip into the reference slot in the editor.