/// <summary> /// 击败魔女后的结果(显示挑战时间与总时间) /// </summary> /// <returns></returns> IEnumerator <float> Conclusion() { /*这里说明一下,所有魔女打完之后都会先展示结算界面,最后展示staff(仅瓦夜击败后有staff) * 游戏中的魔法少女死亡后说明一下然后退出到魔女选择part * 全员死亡后说一下凉透了就跳转到staff */ //此处仅执行顺利打完魔女的结算 //击败提示 if (StageCtrl.gameScoreSettings.BattlingMajo != Variable.Majo.Walpurgisnacht) { MajoDieText.text = string.Format("{0} was defeated\n and left griefseed.", StageCtrl.gameScoreSettings.BattlingMajo.ToString()); } else { MajoDieText.text = string.Format(" {0} was over.", StageCtrl.gameScoreSettings.BattlingMajo.ToString()); } //这个魔女被击败的用时 ThisMajoTimeText.text = string.Format("Clear Time:{0}", TitleCtrl.IntTimeFormat(StageCtrl.stageCtrl.ThisMajoTime)); //总用时 TotalTimeText.text = string.Format("Total Time:{0}", TitleCtrl.IntTimeFormat(StageCtrl.gameScoreSettings.Time)); //展开结算界面 ConcInMajo.gameObject.SetActive(true); //淡入 for (int i = 0; i < 50; i++) { ConcInMajo.alpha += 0.02f; yield return(Timing.WaitForSeconds(0.01f)); } //返回方法 Invoke("ReturnToMajoOrStaff", 3f); }
/// <summary> /// 所选都魔法少女死亡 /// </summary> public IEnumerator <float> ShoujoDie() { //判断是否五色扑街 if (StageCtrl.gameScoreSettings.AllDie) { //借助结算界面的文本框通知玩家你成功打出了be MajoDieText.text = " Sekai saraba..."; } else { //借助结算界面的文本框通知玩家你成功打出了be MajoDieText.text = " Select another mahoshoujo to continue..."; } //存活时间 ThisMajoTimeText.text = string.Format("Surivial Time:{0}", TitleCtrl.IntTimeFormat(StageCtrl.stageCtrl.ThisMajoTime)); //总用时 TotalTimeText.text = string.Format("Total Time:{0}", TitleCtrl.IntTimeFormat(StageCtrl.gameScoreSettings.Time)); //展开结算界面 ConcInMajo.gameObject.SetActive(true); //淡入 for (int i = 0; i < 50; i++) { ConcInMajo.alpha += 0.02f; yield return(Timing.WaitForSeconds(0.01f)); } //返回方法 Invoke("ReturnToMajoOrStaff", 3f); }