I want my sound to loop when it finishes, how can I do that?
public class Lasersound : MonoBehaviour
{
public AudioClip Pew;
public AudioSource audioSource;
void Start ()
{
audioSource = GetComponent<AudioSource> ();
}
void Update ()
{
if (Input.GetMouseButtonDown (0)) {
audioSource.PlayOneShot (Pew, 0.3F);
}
else
{
if (Input.GetMouseButtonUp (0)){
audioSource.Stop();
}
