Exemple #1
0
    public void EventCoinWarningClose()
    {
        Debug.Log("EventCoinWarningClose");
        ev.EventOnRelease();
        if (ev.isCurPrevDist)
        {
            audioSource.clip = menuClip; audioSource.Play();

            CoinWarningPopup.SetActive(false);

            if (shopPopupDepth == 3)
            {
                PopupBg2.SetActive(false);
            }
            else if (shopPopupDepth == 5)
            {
                PopupBg4.SetActive(false);
            }
            else if (shopPopupDepth == 7)
            {
                PopupBg6.SetActive(false);
            }

            coinWarningPopupAnimator.SetBool("isSmallLargeScale2", false);
        }
        g.isPopupPurchaseShow = false;
    }
Exemple #2
0
    public void EventCoinWarning()
    {
        Debug.Log("EventCoinWarning");

        ev.EventOnRelease();
        if (ev.isCurPrevDist)
        {
            audioSource.clip = menuClip; audioSource.Play();

            CoinWarningPopup.SetActive(true);

            if (shopPopupDepth == 3)
            {
                PopupBg2.SetActive(true);
                coinWarningPopupPanelUIPanel.depth = 3;
            }
            else if (shopPopupDepth == 5)
            {
                PopupBg4.SetActive(true);
                coinWarningPopupPanelUIPanel.depth = 5;
            }
            else if (shopPopupDepth == 7)
            {
                PopupBg6.SetActive(true);
                coinWarningPopupPanelUIPanel.depth = 7;
            }

            coinWarningPopupAnimator.speed = 2;
            coinWarningPopupAnimator.SetBool("isSmallLargeScale2", true);
        }
    }
Exemple #3
0
    public void EventShopFbShareClose()
    {
        Debug.Log("EventShopFbShareClose");
        //ev.EventOnRelease();
        //if (ev.isCurPrevDist)
        //{
        audioSource.clip = menuClip; audioSource.Play();

        ShopFbSharePopup.SetActive(false);
        PopupBg4.SetActive(false);
        g.isShopFbShare = false;
        shopFbSharePopupAnimator.SetBool("isSmallLargeScale2", false);
        //}
    }
Exemple #4
0
    public void EventShopAllPackClose()
    {
        Debug.Log("EventBuyItemPopupClose");
        ev.EventOnRelease();
        if (ev.isCurPrevDist)
        {
            audioSource.clip = menuClip; audioSource.Play();

            ShopAllPackPopup.SetActive(false);
            PopupBg4.SetActive(false);

            shopAllPackPopupAnimator.SetBool("isSmallLargeScale2", false);
        }
        g.isPopupPurchaseShow = false;
    }
Exemple #5
0
    //----------------------------------------------------------------------
    //                          ShopFbShareCoin
    //----------------------------------------------------------------------
    public void EventShopFbShare()
    {
        Debug.Log("EventShopFbShare");

        ev.EventOnRelease();
        if (ev.isCurPrevDist)
        {
            audioSource.clip = menuClip; audioSource.Play();

            ShopFbSharePopup.SetActive(true);
            PopupBg4.SetActive(true);

            shopFbSharePopupAnimator.speed = 2;
            shopFbSharePopupAnimator.SetBool("isSmallLargeScale2", true);
        }
    }
Exemple #6
0
 public void SetActivePopupBg4(bool tf)
 {
     PopupBg4.SetActive(tf);
 }