unity how to play audio through script code example
Example 1: how to play sound in unity
public AudioSource Jump;
Jump.Play();
Example 2: what's the component for audio in unity
Audio Source
public AudioSource Jump;
Jump.Play();
Audio Source