void OnPurchaseInApp(ShopResultStatus status, string product) { if(status == ShopResultStatus.Success) { } }
void BuyItems(ShopResultStatus status, string x) { Debug.Log(status); mapCount.Text = "x" + Save.GetInt(PlayerPrefsKeys.ITEM + "map").ToString(); radarCount.Text = "x" + Save.GetInt(PlayerPrefsKeys.ITEM + "radar").ToString(); shieldCount.Text = "x" + Save.GetInt(PlayerPrefsKeys.ITEM + "shield").ToString(); Flow.messageOkCancelDialog.SetActive(false); Flow.game_native.showMessage("Item Received", "You received 10 units of this item to use in game", "ok"); }
void CheckBuyItem(ShopResultStatus status, string product) { Debug.Log("status: "+status); Debug.Log("product: "+product); if(Flow.shopManager.GetShopItem(product).type == ShopItemType.NonConsumable) { has = true; transform.FindChild("Purchased").gameObject.SetActive(true); transform.FindChild("Price").gameObject.SetActive(false); } }
void CheckBuyItem(ShopResultStatus status, string product) { Debug.Log("status: " + status); Debug.Log("product: " + product); if (Flow.shopManager.GetShopItem(product).type == ShopItemType.NonConsumable) { has = true; transform.FindChild("Purchased").gameObject.SetActive(true); transform.FindChild("Price").gameObject.SetActive(false); } }
void OnRestore(ShopResultStatus status, string id) { if (status == ShopResultStatus.Success) { if (id.Contains("noads")) { coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").FindChild("Purchased").gameObject.SetActive(true); coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").FindChild("Coins").FindChild("Label").gameObject.SetActive(false); coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").GetComponent <ShopInfo>().has = true; } } }
void BuyItems(ShopResultStatus status, string x) { Debug.Log(status); mapCount.Text = "x"+Save.GetInt(PlayerPrefsKeys.ITEM+"map").ToString(); radarCount.Text = "x"+Save.GetInt(PlayerPrefsKeys.ITEM+"radar").ToString(); shieldCount.Text = "x"+Save.GetInt(PlayerPrefsKeys.ITEM+"shield").ToString(); Flow.messageOkCancelDialog.SetActive(false); Flow.game_native.showMessage("Item Received", "You received 10 units of this item to use in game", "ok"); }
void BuyItems(ShopResultStatus status, string x) { }
void OnRestore(ShopResultStatus status, string id) { if(status == ShopResultStatus.Success) { if(id.Contains("noads")) { coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").FindChild("Purchased").gameObject.SetActive(true); coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").FindChild("Coins").FindChild("Label").gameObject.SetActive(false); coinsScroll.GetItem(1).transform.FindChild("ShopInApp5").GetComponent<ShopInfo>().has = true; } } }
void BuyItems(ShopResultStatus status, string x){}
void OnPurchaseInApp(ShopResultStatus status, string product) { if (status == ShopResultStatus.Success) { } }