Exemplo n.º 1
0
	void OnPurchaseInApp(ShopResultStatus status, string product)
	{
		if(status == ShopResultStatus.Success)
		{
			
		}
	}
Exemplo n.º 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");
 }
Exemplo n.º 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);
		}
	}
Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 6
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");
	}
Exemplo n.º 7
0
 void BuyItems(ShopResultStatus status, string x)
 {
 }
Exemplo n.º 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;
			}
		}
	}
Exemplo n.º 9
0
	void BuyItems(ShopResultStatus status, string x){}
Exemplo n.º 10
0
 void OnPurchaseInApp(ShopResultStatus status, string product)
 {
     if (status == ShopResultStatus.Success)
     {
     }
 }