diff --git a/Assets/Scores.cs b/Assets/Scores.cs index f33b9c6..069e24f 100644 --- a/Assets/Scores.cs +++ b/Assets/Scores.cs @@ -89,8 +89,10 @@ void Start() GJAPI.Scores.Get(); GJAPI.Scores.GetMultipleCallback += OnReceivedHighScore; } - + yourPlayer.text = GJAPI.User.Name; + yourRounds.text = rounds.ToString(); + yourKills.text = kills.ToString(); //score.text = "HIGHSCORE: " + lastHS + "\nROUNDS: " + rounds + "\nKILLS: " + kills; } @@ -99,6 +101,7 @@ void Start() void OnReceivedHighScore(GJScore[] scores) { + GJAPI.Scores.Add(rounds.ToString(), (uint)kills); if (scores.Length > 0) { @@ -121,9 +124,7 @@ void OnReceivedHighScore(GJScore[] scores) kills3.text = scores[2].Sort.ToString(); } - yourPlayer.text = GJAPI.User.Name; - yourRounds.text = rounds.ToString(); - yourKills.text = kills.ToString(); + }