public void UpdateTradeOffers() { DisableAllTradeOfferButtons(); ExecuteCloudScriptRequest getTradeOffersRequest = new ExecuteCloudScriptRequest { FunctionName = "GetTradeIDs" }; PlayFabClientAPI.ExecuteCloudScript(getTradeOffersRequest, result => { string rawData = result.FunctionResult.ToString(); tradeOfferInfo = JsonUtility.FromJson <TradeOfferInfo>(rawData); GetTradeInfo(); }, error => Trade.instance.SetDisplayText(error.ErrorMessage, true) ); }
public void UpdateTradeOffers() { DisableAllTradeOfferButtons(); ExecuteCloudScriptRequest getTradeOffersRequest = new ExecuteCloudScriptRequest { FunctionName = "GetTradeIDs" }; PlayFabClientAPI.ExecuteCloudScript(getTradeOffersRequest, result => { // Debug.Log("Resulted" + result); string rawData = result.FunctionResult.ToString(); //Not receiving correct data tradeOfferInfo = JsonUtility.FromJson <TradeOfferInfo>(rawData); GetTradeInfo(); }, error => Debug.Log(error.ErrorMessage) ); }