I have two questions that I hope you guys help me out.
First, I have more than 50 key/value pairs to save for each player. Is JSON best way for it ? Secondly, I have set one key/value pair and User Data key is successfully stored. My problem is how can I convert "result.Data" to int or float.
public void SetUserData() { PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest() { Data = new Dictionary<string, string>() { { "damage", karakter.damage.ToString() }, } } public void GetUserData() { PlayFabClientAPI.GetUserData(new GetUserDataRequest() { PlayFabId = PlayFabId, Keys = null }, result => { Debug.Log("Got user data:"); if (result.Data == null || !result.Data.ContainsKey("damage")) Debug.Log("No damage"); else { Debug.Log("damage: " + result.Data["damage"].Value); karakter.damage = result.Data["damage"].Value; ====> HERE } }