void OnTriggerEnter() { gameManager.CompleteLevel(); while (BGMusic.GetComponent <AudioSource>().volume > 0) { BGMusic.GetComponent <AudioSource>().volume -= 0.9f * Time.deltaTime / FadeTime; } }