00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!
Response to: Newgrounds.io Help & Support Posted September 18th, 2016 in Game Development

Hi guys,
Im trying to add highscore board to my unity webgl game.
I am using the newgrounds.io for unity available in https://bitbucket.org/newgrounds/newgrounds.io-for-unity-c
I think I know how to post a score, Im using something like this:

public void submithethescore()
{
io.newgrounds.components.ScoreBoard.postScore submit_score = new io.newgrounds.components.ScoreBoard.postScore();
submit_score.id = 6666;
submit_score.value = 100;
submit_score.callWith(ngio_core);
}

But I am having problems with the code of retrieving the scores (getScores).
Can someone please show me a C# example of how would be a function to retrieve and list all scores of a specific scoreboard.

Thx very much.