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}");
            }
        }
Exemple #2
0
        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;
                }
            }
        }