public void onSubmit() { string name = nameText.text; if (name.Length == 0) { // shake the input field. shakeStartTime = Time.time; Focus(); } else { RankingManager.UpdateList(name, (int)(ScoreManager.score * 10)); highScoreOverlay.SetActive(false); gameOverOverlay.SetActive(true); } }