Hey Dan, I have a problem. The first time I upload an entry everything works just fine but the second time i can't and get an error saying "Uploading entry data failed!". Everything worked fine 2 days ago and I haven't changed any code. What might be causing this?
public void GetLeaderBoard() {
LeaderboardCreator.GetLeaderboard(publicLeaderboardKey, ((msg) => {
int loopLength = (msg.Length < names.Count) ? msg.Length : names.Count;
for (int i = 0; i < loopLength; i++) {
names[i].text = msg[i].Username;
scores[i].text = msg[i].Score.ToString();
}
}));
}
public void SetLeaderBoardEntry(string username, int score) {
LeaderboardCreator.UploadNewEntry(publicLeaderboardKey, username, score, ((msg) => {
GetLeaderBoard();
LeaderboardCreator.ResetPlayer();
}));
}
Here is the code.