Hi,
I'm having trouble implementing one of the examples for setting payer statistics in java-script.
Coming from a c# background and know very little about java-script. I'm trying to send score information to a PlayFab leaderboard. Below is the example I'm trying to convert. Any help would be greatly appreciated.
PlayFabClientAPI.UpdatePlayerStatistics( new UpdatePlayerStatisticsRequest { // request.Statistics is a list, so multiple StatisticUpdate objects can be defined if required. Statistics = new List<StatisticUpdate> { new StatisticUpdate { StatisticName = "strength", Value = 18 }, } }, result => { Debug.Log("User statistics updated"); }, error => { Debug.LogError(error.GenerateErrorReport()); });