using Android_Iap.GodotGooglePlayBilling; using Godot; using CoreGeneric = System.Collections.Generic; using System.Linq; using System; namespace Android_Iap { /* test skus android.test.purchased android.test.canceled android.test.refunded android.test.item_unavailable */ public class Main : Node2D { private readonly string[] ArrInAppProductsSKUs = new string[] { "android.test.purchased", "android.test.canceled", "android.test.refunded", "android.test.item_unavailable" }; private Button _buyPotionButton; private Label _totalPotionsLabel; private Panel _panel; private Label _processLabel; private Label _thanksLabel; private ProgressBar _playerLife; private StyleBoxFlat _playerLifeStyleBoxFlat; private GooglePlayBilling _googlePlayBilling; private int _totalPotion = 5; CoreGeneric.Dictionary _purchases = new CoreGeneric.Dictionary(); public override void _Ready() { _googlePlayBilling = GetNode("GooglePlayBilling"); _buyPotionButton = GetNode