- Home /
Question by
Chris12345 · Apr 19, 2013 at 09:18 PM ·
prime31gamecenter
GameCenter Post Score?
Hello, i am using prime 31 GameCenter plug in and i want to know how to post a score to a leader board? Also how can i post a achievement and see it in game? i have looked at primes docs and on the web but i still do not understand? Here is non-working code
void PostScore(){
{
// We must have a leaderboard to post the score to
if( leaderboards != null && leaderboards.Count > 1 )
{
Debug.Log( "about to report a score for leaderboard: " + leaderboards[1].leaderboardId );
//GameCenterBinding.reportScore( Random.Range( 1, 99999 ), leaderboards[0].leaderboardId );
GameCenterBinding.reportScore( PlayerPrefs.GetInt("totalcoins"), leaderboards[1].leaderboardId );
}
}}
Comment