private void UpdateScoreDisplay()
        {
            var scores = HighScore.ScoresCount;

            for (var i = 0; i < Entries.Count; i++)
            {
                if (StartFrom + i < scores)
                {
                    var score = HighScore.GetPlayerData(StartFrom + i);
                    Entries[i].SetValues(score.Ranking, score.Username, score.Score);
                    Entries[i].gameObject.SetActive(true);
                }
                else
                {
                    Entries[i].gameObject.SetActive(false);
                }
            }
        }
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Open web view"))
            {
                Application.OpenURL(HighScore.HighScoreUrl);
            }

            EditorGUILayout.Space();

            highScoreDisplay.Username = EditorGUILayout.TextField("Username", highScoreDisplay.Username);
            highScoreDisplay.Score    = EditorGUILayout.TextField("Score", highScoreDisplay.Score);

            if (GUILayout.Button("Add Score"))
            {
                HighScore.UploadScore(highScoreDisplay.Username, highScoreDisplay.Score, null);
            }

            DrawPropertiesExcluding(serializedObject, "Username", "Score");
        }
 public void RefreshScores()
 {
     HighScore.UpdateHighScoresFromServer();
 }
 public void SendScore()
 {
     HighScore.UploadScore(Username, Score, OnScoreUploaded);
 }