using System; using System.Collections.Generic; public interface IAPInterface { event Action readyForTransactionsEvent; event Action purchaseSucceededEvent; event Action purchaseFailedEvent; event Action purchaseCancelledEvent; event Action transactionsRestoredEvent; event Action transactionRestoreFailedEvent; event Action> productListReceivedEvent; event Action productListRequestFailedEvent; event Action codeRedeemFailedEvent; event Action codeVerificationEvent; event Func deliverItem; bool UserInitiatedRestore { get; } void init(); void deInit(); bool readyForTransactions(); void purchaseProduct(string productId); void restoreTransactions(); void fetchAvailableProducts(string[] requestedProductIds); void OnLevelWasLoaded(); }