I am writing the code that presents the UI for doing in-app purchasing. When I iterate through the items in GetStoreItemsResult, I found the item I was setting up with this code:
void OnCurrencyStoreDataValid(GetStoreItemsResult _result) { m_buyValid.SetActive (true); foreach (StoreItem s in _result.Store) { if (s.ItemId == Constants.cBuySmallGB) { //uint c = s.RealCurrencyPrices ["rm"]; //m_smallPurchaseCost = s.RealCurrencyPrices } else if (s.ItemId == Constants.cBuyLargeGB) { } else if (s.ItemId == Constants.cBuyRemoveFee) { } } m_doneTxt.text = "Done"; }
I wasn't expecting the real money value to appear under virtual currency. Why is it that way? The "RealCurrencyPrices" was null.