// Update is called once per frame void Update() { if (is_started) { cnt_game -= Time.deltaTime; } TimeText.text = GetTimeString(); if (cnt_game <= 0f) { CountText.text = "Time's Up!"; aud.Play(); BGMManager.SendMessage("StopBGM"); StaticVars.LocalStudentScore = MainScoreController.GetScore1P(); StaticVars.LocalAdminScore = MainScoreController.GetScore2P(); StartCoroutine(StartGoToRankings()); Time.timeScale = 0f; } }