/// <summary> /// Called from the button in the popup /// </summary> public void ConsumePrize() { PlayFabClientAPI.ConsumeItem(new ConsumeItemRequest() { ItemInstanceId = prizeInstanceID, ConsumeCount = 1 }, result => { tokenManager.AddTokens(prizeAmount); }, error => { Debug.Log("Got consuming prize"); Debug.Log(error.GenerateErrorReport()); } ); }