Example #1
0
	void OnPurchaseInApp(ShopResultStatus status, string product)
	{
		if(status == ShopResultStatus.Success)
		{
			
		}
	}
Example #2
0
 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");
 }
Example #3
0
	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);
		}
	}
Example #4
0
 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);
     }
 }
Example #5
0
 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");
	}
Example #7
0
 void BuyItems(ShopResultStatus status, string x)
 {
 }
Example #8
0
	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;
			}
		}
	}
Example #9
0
	void BuyItems(ShopResultStatus status, string x){}
Example #10
0
 void OnPurchaseInApp(ShopResultStatus status, string product)
 {
     if (status == ShopResultStatus.Success)
     {
     }
 }