public override IEnumerator Routine() { while (titleDisplayed.Length < title.Length) { titleDisplayed += title[titleDisplayed.Length].ToString(); yield return(0.05f); } yield return(PressButton()); Audio.Play("event:/new_content/game/10_farewell/ppt_wavedash_whoosh"); while (clipArtEase < 1f) { clipArtEase = Calc.Approach(clipArtEase, 1f, Engine.DeltaTime); yield return(null); } yield return(0.25f); infoText = FancyText.Parse(Presentation.GetDialog("PAGE3_INFO"), Width - 240, 32, 1f, new Color?(Color.Black * 0.7f), null); yield return(PressButton()); Audio.Play("event:/new_content/game/10_farewell/ppt_its_easy"); easyText = new AreaCompleteTitle(new Vector2(Width / 2f, Height - 150), Presentation.GetCleanDialog("PAGE3_EASY"), 2f, true); yield return(1f); yield break; }
public override IEnumerator Routine() { yield return(1f); Audio.Play("event:/new_content/game/10_farewell/ppt_happy_wavedashing"); title = new AreaCompleteTitle(new Vector2(Width / 2f, 150f), Presentation.GetCleanDialog("PAGE6_TITLE"), 2f, true); yield return(1.5f); yield break; }
public override IEnumerator Routine() { Audio.SetAltMusic("event:/new_content/music/lvl10/intermission_powerpoint"); yield return(1f); title = new AreaCompleteTitle(new Vector2(Width / 2f, Height / 2f - 100f), Presentation.GetCleanDialog("PAGE1_TITLE"), 2f, true); yield return(1f); while (subtitleEase < 1f) { subtitleEase = Calc.Approach(subtitleEase, 1f, Engine.DeltaTime); yield return(null); } yield return(0.1f); yield break; }