public void Initialize(ProductDefinition[] products, NPIAPListener listener) { if (storeController == null) { InitPurchasing(products); this.listener = listener; } }
public void Initialize(IAPProduct[] products, NPIAPListener listener) { if (storeController == null) { this.listener = listener; ProductDefinition[] proddefs = new ProductDefinition[products.Length]; for (int prodIndex = 0; prodIndex < proddefs.Length; prodIndex++) { proddefs[prodIndex] = products[prodIndex].ProdDefinition; } InitPurchasing(proddefs); } }