void Awake()
 {
     instance = this;
     for (int i = 0; i < buttonCoins.Length; i++)
     {
         Transform trCurrency = buttonCoins[i].transform.Find("Currency");
         if (trCurrency)
         {
             trCurrency.gameObject.SetActive(false);
         }
     }
 }
    private static void OnRetrieveProductsFinised(BillingResult result)
    {
        AndroidInAppPurchaseManager.ActionRetrieveProducsFinished -= OnRetrieveProductsFinised;


        if (result.isSuccess)
        {
            foreach (GoogleProductTemplate tpl in AndroidInAppPurchaseManager.instance.inventory.products)
            {
                for (int i = 0; i < GemuCoinShopController.GetInstance().buttonCoins.Length; i++)
                {
                    GameObject content = GemuCoinShopController.GetInstance().buttonCoins[i];
                    if (tpl.SKU.Equals(content.name))
                    {
                        Transform trCurrency = content.transform.Find("Currency");
                        if (trCurrency)
                        {
                            UILabel text = trCurrency.GetComponent <UILabel>();
                            text.text = tpl.price;
                            trCurrency.gameObject.SetActive(true);
                        }
                        Transform trTitle = content.transform.Find("Title");
                        if (trTitle)
                        {
                            Text text = trTitle.GetComponent <Text>();
                            //text.text = tpl.title;
                        }

                        //content.gameObject.SetActive(true);
                        break;
                    }
                }
            }
        }
        else
        {
            //AndroidMessage.Create("Connection Responce", result.response.ToString() + " " + result.message);
        }

        Debug.Log("[GemuCoinShopController] Connection Response: " + result.response.ToString() + " " + result.message);
    }
 void OnDestroy()
 {
     instance = null;
 }