public void onItemPurchased(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onItemPurchased:" + message); PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message); Events.OnItemPurchased(pvi); }
public void onMarketPurchase(string message) { Debug.Log("SOOMLA/UNITY onMarketPurchase:" + message); PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message); Events.OnMarketPurchase(pvi); }
public void onMarketPurchase(string message) { Debug.Log("SOOMLA/UNITY onMarketPurchase:" + message); string[] vars = Regex.Split(message, "#SOOM#"); PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(vars[0]); string payload = ""; string purchaseToken = ""; if (vars.Length > 1) { payload = vars[1]; } if (vars.Length > 2) { purchaseToken = vars[2]; } StoreEvents.OnMarketPurchase(pvi, purchaseToken); }
public void onMarketRefund(PurchasableVirtualItem pvi) { Handheld.StopActivityIndicator (); SaveManager.skin2Unlocked = 0; SaveManager.skin3Unlocked = 0; SaveManager.skin4Unlocked = 0; SaveManager.skin5Unlocked = 0; SaveManager.skin6Unlocked = 0; SaveManager.skin7Unlocked = 0; SaveManager.skin8Unlocked = 0; SaveManager.skin9Unlocked = 0; SaveManager.skin10Unlocked = 0; SaveManager.skin11Unlocked = 0; SaveManager.skin12Unlocked = 0; SaveManager.skin13Unlocked = 0; SaveManager.skin14Unlocked = 0; SaveManager.skin15Unlocked = 0; SaveManager.skin16Unlocked = 0; SaveManager.skin17Unlocked = 0; SaveManager.skin18Unlocked = 0; SaveManager.skin19Unlocked = 0; SaveManager.skin20Unlocked = 0; SaveManager.skin21Unlocked = 0; SaveManager.skin22Unlocked = 0; SaveManager.skin23Unlocked = 0; SaveManager.skin24Unlocked = 0; SaveManager.SaveData(); UpdateShopDisplay(); }
public void onMarketPurchaseCancelled(PurchasableVirtualItem pvi) { Handheld.StopActivityIndicator (); }
public void onMarketPurchase(PurchasableVirtualItem pvi, string payload, Dictionary<string, string> extra) { Handheld.StopActivityIndicator (); SaveManager.skin2Unlocked = 1; SaveManager.skin3Unlocked = 1; SaveManager.skin4Unlocked = 1; SaveManager.skin5Unlocked = 1; SaveManager.skin6Unlocked = 1; SaveManager.skin7Unlocked = 1; SaveManager.skin8Unlocked = 1; SaveManager.skin9Unlocked = 1; SaveManager.skin10Unlocked = 1; SaveManager.skin11Unlocked = 1; SaveManager.skin12Unlocked = 1; SaveManager.skin13Unlocked = 1; SaveManager.skin14Unlocked = 1; SaveManager.skin15Unlocked = 1; SaveManager.skin16Unlocked = 1; SaveManager.skin17Unlocked = 1; SaveManager.skin18Unlocked = 1; SaveManager.skin19Unlocked = 1; SaveManager.skin20Unlocked = 1; SaveManager.skin21Unlocked = 1; SaveManager.skin22Unlocked = 1; SaveManager.skin23Unlocked = 1; SaveManager.skin24Unlocked = 1; SaveManager.SaveData(); UpdateShopDisplay(); }