playing sounds unity code example
Example 1: stop sound in unity
audioSource.Play();//Start playing
audioSource.Stop();//Stop playing
Example 2: how to play sound in unity
public AudioSource Jump;
Jump.Play();
audioSource.Play();//Start playing
audioSource.Stop();//Stop playing
public AudioSource Jump;
Jump.Play();