Unity How to play sound effect

Create an AudioClip member for your script. Drag the sound in via the inspector.

Audio.cs
public AudioClip sound1;
void Start () {
    AudioSource.PlayClipAtPoint(sound1, transform.position);
}
Navigation
Print/export
Toolbox