private void TimeAttackUpdate() { Timer = Timer - Time.deltaTime; GameUI.SetTimer(Timer); if (Timer <= 0f) { GameUI.SetTimer(Timer); Puase(); GameUI.setCenteredText(string.Format("Congratulations you finished {0} levels in {1} ", Score, TimeAttackTotalTime / 60.0f)); } }