Google Play 游戏排行榜帖子分数报告成功但未更新

Mat*_*day 0 c# unity-game-engine google-play-services google-play-games

我在 Unity 2018.2.15f1 上使用 google play games Unity3D api,应该注意的是,我的 google play games 项目尚未发布,但是我不想在我获得所有成就之前发布它。

排行榜发帖代码为:

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");
        }
    });
}
Run Code Online (Sandbox Code Playgroud)

并且 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
Run Code Online (Sandbox Code Playgroud)

然而,无论排行榜没有更新,它始终显示 8 分。我不明白为什么会出现这个,因为它只出现在我的设备上,即使我擦除排行榜它仍然存在。

排行榜尚未发布的事实是否存在问题?或者可能有其他东西在起作用。

Lac*_*mov 8

在我的情况下,当我编辑我的 GameServices 配置文件并启用复选框“让其他人看到您的游戏活动”时,问题得到了解决。

在此之前,无论我做什么,所有报告的分数都被忽略了。