예제 #1
0
    private void OnReGacha(GameObject go)
    {
        SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM);

#if !GMTOOLSHOP
        CashShopWindow win = UIControlManager.instance.GetWindow <CashShopWindow>(enUIType.SHOP);
        if (win != null)
        {
            win.BuyRequest(_enGachaDiscountType.enGachaDiscountType_Continue);
        }
#endif
    }
예제 #2
0
    /// <summary>
    /// 상점으로 돌아가지 않고 다시 뽑기
    /// </summary>
    /// <param name="go"></param>
    private void OnReGacha(GameObject go)
    {
        if (go != null)
        {
            SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM);
        }

        CashShopWindow win = UIControlManager.instance.GetWindow <CashShopWindow>(enUIType.SHOP);

        if (win != null)
        {
            if (win.PaymentBuy(_enGachaDiscountType.enGachaDiscountType_Continue))
            {
                if (_PvpEnterancePopup == null)
                {
                    _PvpEnterancePopup = UIResourceMgr.CreatePrefab <PvpEnterancePopup>(BUNDLELIST.PREFABS_UI_DUNGEON, transform, "PvpEnterancePopup");
                    _PvpEnterancePopup.Init(PvpEnterancePopup.EnterPopupType.ReGacha, (ulong)_reGachaPriceValue);
                }

                _PvpEnterancePopup.OpenUI();
            }
        }
    }