public void ProcessNewScore(int sentScore) { if (highScore < sentScore) { try { highScore = sentScore; PlayerPrefs.SetInt("highscore_" + levelInfo.Name, sentScore); Debug.Log("HighScore: " + levelInfo.ID + ", " + highScore); WriteHighScoreToUI(); } catch (System.Exception e) { Debug.Log("Could not set new high score"); e.ToString(); } } socialManager.ReportScore(sentScore, levelInfo.ID); }