public void PurchaseItem(IAPEnum productType) { Debug.Log("PurchaseItem " + productType); _currentProductId = productType.ToString(); BuyProductID(_currentProductId); }
public string GetItemPrice(IAPEnum itemType) { if (m_StoreController == null) { return("-"); } Product product = m_StoreController.products.WithID(itemType.ToString()); var price = product.metadata.localizedPriceString; return(price); }