IEnumerator _FinishEvent() { IsEnd = true; Time.timeScale = 0.0f; Time.fixedDeltaTime = Time.fixedDeltaTime * Time.timeScale; StageManager.StopBGM(); BattleData.TEST_END_SHOW(); rank = new int[scores.Length]; for (int i = 0; i < rank.Length; i++) { rank[i] = i; } Array.Sort(scores, rank); Array.Reverse(rank); for (int i = 0; i < rank.Length; i++) { Debug.Log(rank[i]); } yield return(new WaitForSecondsRealtime(1.35f)); StageManager.SetCloseUpCamera(rank[0]); yield return(new WaitForSecondsRealtime(2f)); GameObject.FindGameObjectWithTag("StageManager").GetComponent <StageManager>().LoadLobby(); Time.timeScale = 1f; Time.fixedDeltaTime = 0.01f; yield return(null); }
IEnumerator _FinishEvent() { Time.timeScale = 0.0f; Time.fixedDeltaTime = Time.fixedDeltaTime * Time.timeScale; StageManager.StopBGM(); BattleData.TEST_END_SHOW(); yield return(new WaitForSecondsRealtime(1.35f)); for (int i = 0; i < Lifes.Count; i++) { if (DeadPlayer.Contains(i)) { } else { Debug.Log(i); StageManager.SetCloseUpCamera(i); } } // StageManager.SetCloseUpCamera(rank[0]); yield return(new WaitForSecondsRealtime(2f)); GameObject.FindGameObjectWithTag("StageManager").GetComponent <StageManager>().LoadLobby(); Time.timeScale = 1f; Time.fixedDeltaTime = 0.01f; yield return(null); }
IEnumerator _FinishEvent() { Time.timeScale = 0.0f; Time.fixedDeltaTime = Time.fixedDeltaTime * Time.timeScale; StageManager.StopBGM(); BattleData.TEST_END_SHOW(); int[] rank; int[] scores; rank = new int[Lifes.Count]; scores = new int[Lifes.Count]; for (int i = 0; i < rank.Length; i++) { rank[i] = i; } for (int i = 0; i < scores.Length; i++) { scores[i] = Lifes[i]; } Array.Sort(scores, rank); Array.Reverse(rank); yield return(new WaitForSecondsRealtime(1.35f)); StageManager.SetCloseUpCamera(rank[0]); /*Time.timeScale = 1f; * Time.fixedDeltaTime = 0.01f;*/ // GameObject.FindGameObjectWithTag("StageManager").GetComponent<StageManager>().GameEnd(rank); yield return(new WaitForSecondsRealtime(0.5f)); yield return(new WaitForSecondsRealtime(2f)); GameObject.FindGameObjectWithTag("StageManager").GetComponent <StageManager>().LoadLobby(); Time.timeScale = 1f; Time.fixedDeltaTime = 0.01f; yield return(null); }