void Start() { tk2dTextMesh scoreTitle = (tk2dTextMesh)GameObject.Find(NameUtils.NAME_SCORE_TITLE).GetComponent <tk2dTextMesh>(); scoreTitle.text = PlayerPrefs.GetInt(ScoreUtils.TOTAL_SCORE).ToString(); scoreTitle.Commit(); buttonsGO = GameObject.FindGameObjectsWithTag(TagUtils.TAG_BUTTONS); buttonsPlayerNameGO = GameObject.FindGameObjectsWithTag(TagUtils.TAG_SCORE_LEADERBOARD); string startedLevel = PlayerPrefs.GetString(ScoreUtils.LEVEL_USER_INIT); bool canBeAddedToLeaderboard = ScoreUtils.canBeAddedToLeaderboard(startedLevel); leaderboard = ScoreUtils.getLeaderboard(); score = PlayerPrefs.GetInt(ScoreUtils.TOTAL_SCORE); position = ScoreUtils.checkUserEnterLeaderboard(leaderboard, score); if (canBeAddedToLeaderboard && isOnLeaderboard(position)) { foreach (GameObject buttonGO in buttonsGO) { buttonGO.SetActive(false); } } else { foreach (GameObject buttonGO in buttonsPlayerNameGO) { buttonGO.SetActive(false); } } SoundManager.GetInstance().changeAudio(sounds[IDX_SOUND_GAME_OVER]); }