Skip to content

Commit

Permalink
fsadfasf
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgonzalezdev committed Mar 22, 2015
1 parent b404c35 commit 574d0cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Assets/Scores.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Expand All @@ -99,6 +101,7 @@ void Start()

void OnReceivedHighScore(GJScore[] scores)
{

GJAPI.Scores.Add(rounds.ToString(), (uint)kills);
if (scores.Length > 0)
{
Expand All @@ -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();

}


Expand Down

0 comments on commit 574d0cc

Please # to comment.