- Home /
FriendSmash Unity (FB SDK) current users highscore?
Hey guys. So I downloaded the fb example to get a little comfy with their sdk and after going through the tutorial, I have got everything working fine. The only thing I dont get is the current user's highscore in the upper left "welcome panel". It is only showing the highscore of the current session (stored in the GameStateManager) and not fetching it from the scores API. I guess the code for it to is already in the project because of the tournament UI, which is getting all the players highscores. So how do I get the current users highscore from the scores API and let it show up in the welcome panel? Any ideas? I really have no clue
Answer by smallbit · Aug 18, 2014 at 12:24 PM
They get the score in MainMenu.cs in scorescallback method. line 236 and more. https://github.com/fbsamples/friendsmash-unity/blob/master/friendsmash_complete/Assets/Scripts/MainMenu.cs I once used this exact code and it worked just fine for me (slightly edited the order of actions).
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Scoring System ArgumentOutOfRangeException Error 2 Answers
Highscore not working 1 Answer