我不知道为什么SteamUserStats.GetStat()返回false

时间:2018-03-13 04:35:42

标签: c# unity3d steamworks-api

我想将Unity项目集成到Steam。所以我跟着this video

但我遇到了这个问题。

IEnumerator initData () {
    while (!SteamManager.Initialized)
        yield return null;

    Debug.Log (SteamUser.BLoggedOn ());

    int data;
    bool check;

    Debug.Log (SteamUserStats.SetStat ("status", 2));
    check = SteamUserStats.GetStat ("status", out data);
    Debug.Log (check.ToString () + data.ToString ());
    Debug.Log (SteamUserStats.ResetAllStats (true));
}

运行此代码后,它向我显示了这样的日志。enter image description here

我还制作了统计信息并在运行代码之前将其发布。enter link description here

我真的不知道为什么SetStat()GetStat()方法返回false。

0 个答案:

没有答案