/** * Stops the music after 10 seconds */ private IEnumerator MusicDelayer() { yield return(new WaitForSeconds(120.0f)); AudioEventManager.PostEvent("Music_Stop"); }
/** * Monobehavior Start */ void Start() { AudioEventManager.PostEvent("Music_Play"); StartCoroutine("MusicDelayer"); }