【发布时间】:2019-04-19 05:32:42
【问题描述】:
我在 Unity 2018.2.15f1 上使用谷歌玩游戏 Unity3D api,应该注意我的谷歌玩游戏项目没有发布,但是我不想发布它,直到我在那里完成所有成就。
排行榜发帖代码为:
public void PostScore(long score)
{
Social.ReportScore(score, GPGSIds.leaderboard_high_scores, (bool success) => {
// handle success or failure
if(success)
{
Debug.Log("Posted Score of " + score);
}
else
{
Debug.Log("Failed to post score");
}
});
}
并且 logcat 始终显示这会返回成功,如下所示:
11-16 02:45:05.041: I/Unity(5503): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
11-16 02:45:05.042: I/Unity(5503): Posted Score of 19
但是,无论什么排行榜没有更新,它始终显示 8 分。我不明白为什么会出现这种情况,因为它只显示在我的设备上,即使我擦掉排行榜它仍然存在。
是排行榜尚未发布的问题吗?或者可能还有其他事情在起作用。
【问题讨论】:
标签: c# unity3d google-play-services google-play-games