From 574d0ccd93c6b8ea55612b7b491bf13636172b6e Mon Sep 17 00:00:00 2001 From: "Manuel J. Gonzalez" Date: Sun, 22 Mar 2015 17:00:46 +0100 Subject: [PATCH] fsadfasf --- Assets/Scores.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); + }