How do I delay an audio clip in Unity?
<p>I've just started programming in Unity and what I'd like to do is to delay an audio clip to play by 5 seconds after the game starts.</p>

<p>I've searched online and found this code here, but when I execute it there is no sound.</p>

<pre><code>using UnityEngine;
using System.Collections;

public class WizardVoice : MonoBehaviour {
    public AudioSource myAudio;
    // Use this for initialization
    void Start () {

        StartCoroutine(PlaySoundAfterDelay(myAudio, 300.0f));
    }

    // Update is called once per frame
    void Update () {

    }

    IEnumerator PlaySoundAfterDelay(AudioSource audioSource, float delay)
    {
        if (audioSource == null)
            yield break;
        yield return new WaitForSeconds(delay);
        audioSource.Play();
    }

}
</code></pre>

<p>I'm trying to find out what I did wrong, but not having any luck.  Any help is appreciated!</p>

<p>Thank you!</p>