private IEnumerator Animation() { RenderSettings.fog = false; camera.gameObject.GetComponent <UnityStandardAssets.CinematicEffects.AmbientOcclusion>().enabled = false; light.SetActive(true); controller.SetMouseLookEnabled(false); controller.SetHeadBobEnabled(false); controller.enabled = false; birds.Play(); director.StartAnimating(camera, rotationTarget, movementTarget); yield return(new WaitUntil(() => director.IsFinished())); yield return(new WaitForSeconds(1.0f)); TextOutput textOutput = TextOutput.GetInstance(); textOutput.ShowText(TextManager.GetGoodEndingText(), TextOutput.TextAreaSize.Small); yield return(new WaitWhile(() => textOutput.IsActive())); UnityEngine.SceneManagement.SceneManager.LoadScene("Main"); }