private void Update() { if (cheatsComponent) { if (Input.GetKeyDown(KeyCode.F12)) { if (GameManager.Get().areCheatsOn) { cheatsComponent.SwitchScreen(); } } } if (newHighscoreText) { if (highscoreTexts.Length > 0) { for (int i = 0; i < highscoreTexts.Length; i++) { highscoreTexts[i].text = "Highscore: " + highscore.highscore; } if (highscore.hasNewHighscore) { newHighscoreText.enabled = true; } } } if (Input.GetKeyDown(switchKey)) { SwitchAnimation(); } }