public static void SetUserData() { PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest() { Data = new Dictionary <string, string>() { { "Name", UserName }, }, Permission = UserDataPermission.Public, }, null, error => { Debug.Log(error.GenerateErrorReport()); }); PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest() { Data = new Dictionary <string, string>() { { "Money", Money.ToString() }, }, Permission = UserDataPermission.Private, }, result => Debug.Log("Successfully updated user data"), error => { Debug.Log(error.GenerateErrorReport()); }); }
private void OnGUI() { GUI.Label(new Rect(Screen.width / 2 - 25, 25, 100, 50), MySecuredInt.ToString(), new GUIStyle() { normal = new GUIStyleState() { textColor = Color.white }, fontSize = 48 }); GUI.Label(new Rect(10, 100, 400, 100), "This is used to prevent memory hack at runtime," + " use it on sensitive data (Like player's health)"); }