private void OnSkuDetailsQueryCompleted(Godot.Collections.Array arrSkuDetails) { ShowAlert(JSON.Print(arrSkuDetails)); var skuDetails = GooglePlayBillingUtils.ConvertSkuDetailsDictionaryArray(arrSkuDetails); foreach (var skuDetail in skuDetails) { GD.Print($"Sku {skuDetail.Sku}"); } }
private void OnGooglePlayBilling_SkuDetailsQueryCompleted(Godot.Collections.Array arrSkuDetails) { var skuDetails = GooglePlayBillingUtils.ConvertSkuDetailsDictionaryArray(arrSkuDetails); foreach (var sku in skuDetails) { switch (sku.Sku) { // our fake potion case "android.test.purchased": _buyPotionButton.Text = $"Buy {sku.Price}"; _buyPotionButton.Show(); break; } } }