public void StartGame() { canvas.gameObject.SetActive(true); pauseMenu.gameObject.SetActive(false); wholeUI.gameObject.SetActive(true); pauseButton.gameObject.SetActive(true); gameOverPopup.SetActive(false); if (!PlayerData.instance.koreanCheck) { if (PlayerData.instance.highscores.Count != 0) { highScoreText.text = "HighScore : " + PlayerData.instance.highscores[0].score.ToString() + "m"; } else { highScoreText.text = "HighScore : 0m"; } pauseTitle.text = "PAUSE"; pauseExitTitle.text = "Really?"; pauseExitDesc.text = "If you go out on the way, you will lose the stars and coins from the game."; deathPopupTitle.text = "CONTINUE?"; deathPopupExit.text = "MAIN MENU"; } else { if (PlayerData.instance.highscores.Count != 0) { highScoreText.text = "최고기록 : " + PlayerData.instance.highscores[0].score.ToString() + "m"; } else { highScoreText.text = "최고기록 : 0m"; } pauseTitle.text = "일시 정지"; pauseExitTitle.text = "정말?"; pauseExitDesc.text = "도중에 나가면 게임에서 얻은 별과 코인을 잃게 됩니다."; deathPopupTitle.text = "이어서 하시겠습니까?"; deathPopupExit.text = "나가기"; } Time.timeScale = 1; /* * if (!trackManager.isRerun) * { * m_TimeSinceStart = 0; * trackManager.characterController.currentLife = trackManager.characterController.maxLife; * } */ currentModifier.OnRunStart(this); stageManager.Begin(); m_Finished = false; //m_PowerupIcons.Clear(); }