heroiclabs / nakama-unity

Unity client for Nakama server.
https://heroiclabs.com/docs/unity-client-guide
Other
407 stars 75 forks source link

The document on the official website has not been updated #161

Closed w772007846 closed 10 months ago

w772007846 commented 10 months ago

public class HatsStorageObject { public string[] Hats; }

**var readObjectId = new StorageObjectId { Collection = "Unlocks", Key = "Hats", UserId = session.UserId };

var result = await client.ReadStorageObjectsAsync(session, readObjectId);**

if (result.Objects.Any()) { var storageObject = result.Objects.First(); var unlockedHats = JsonParser.FromJson(storageObject.Value); Debug.LogFormat("Unlocked hats: {0}", string.Join(",", unlockedHats.Hats)); }

novabyte commented 10 months ago

Thanks for the report. @heroiclabs/devrel can you take a look and update the docs? 🙏

tomglenn commented 10 months ago

@w772007846 Please can you let me know what the specific issue is here and we will look into getting it resolved. Thanks.

tomglenn commented 10 months ago

I'm going to close this issue as I'm unable to determine what change is being proposed here. @w772007846 if you feel this is a mistake please create a new issue with a detailed explanation of the problem and what you think should be fixed. Please also include a link to the part of the docs website that you feel is incorrect.