Esempio n. 1
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);
        }
    }
Esempio n. 2
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;
    }
Esempio n. 3
0
 public void SetActivePopupBg6(bool tf)
 {
     PopupBg6.SetActive(tf);
 }