void showEventBanner()
    {
        //캐릭로비 로테이트 비활성
        User.isSelectedCharacter = true;

        //스폐셜상품 인덱스
        ushort SpecialShopProductIdx = 308;

        Infos_Shop specialShopInfo = null;

        if (TableDataManager.instance.Infos_shops.ContainsKey(SpecialShopProductIdx))
        {
            specialShopInfo = TableDataManager.instance.Infos_shops[SpecialShopProductIdx];
        }

        if (specialShopInfo != null)
        {
            UI_Popup_ShopPurchase popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_ShopPurchase>(UIPOPUP.POPUPSHOPPURCHASE);
            popup.Set_ShopPuchase(specialShopInfo, STOREMODE_TYPE.Package);
        }
    }
Example #2
0
    //보석구매 버튼 함수
    public void ResponseButton_Buy_Gem()
    {
        //패키지 상품은 팝업띄우기
        if (nowSotreMode == STOREMODE_TYPE.Package || nowSotreMode == STOREMODE_TYPE.Special)
        {
            UI_Popup_ShopPurchase popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_ShopPurchase>(UIPOPUP.POPUPSHOPPURCHASE);
            popup.Set_ShopPuchase(infos_shop, nowSotreMode);
        }
        else
        {
//#if UNITY_EDITOR
            webRequest.ShopBuyItem(infos_shop.ShopIdx, callback_buy_GoldGem);

//#else


//		InAppPurchaseManager _IAP = InAppPurchaseManager.instance;
//		_IAP.nextPrcs = callback_buy_GoldGem;
//		_IAP.RequestPayment(_IAP.Get_ProductID(infos_shop.ShopIdx), infos_shop.ShopIdx);


//#endif
        }
    }