【发布时间】:2021-03-14 16:16:06
【问题描述】:
我正在尝试使用 Google Play 游戏从排行榜中获取最高分,但它没有返回任何内容。有人能指出我正确的方向吗?
public int WorldRecord()
{
int topScore = 0;
PlayGamesPlatform.Instance.LoadScores(
GPGSIds.leaderboard_quick_fire_scores,
LeaderboardStart.TopScores, 1,
LeaderboardCollection.Public,
LeaderboardTimeSpan.AllTime,
(LeaderboardScoreData data) =>
{
topScore = (int)data.Scores[0].value;
});
return topScore;
}
谢谢
【问题讨论】:
标签: c# unity3d google-play-services google-play-games