【发布时间】:2018-01-05 08:25:39
【问题描述】:
我想在玩家按下排行榜图标时直接显示排行榜得分,如下所示:
当我显示排行榜时,它只是显示,排行榜列表。我想直接看实际分数。
这是我的代码:
public void ShowLeaderboard ()
{
if (Social.localUser.authenticated)
Social.ShowLeaderboardUI ();
else {
// authenticate user:
Social.localUser.Authenticate ((bool success) => {
// handle success or failure
if (success) {
Debug.Log ("Login Success....");
PostHighScoreOnLeaderBoard();
Social.ShowLeaderboardUI ();
} else {
Debug.Log ("Login Failed....");
}
});
}
}
如何直接显示球员得分?
【问题讨论】:
标签: android unity3d google-play leaderboard