Exemplo n.º 1
0
    public virtual void HandleHide()
    {
        GameCommunity.HideActionAppRate();
        GameCommunity.HideSharesCenter();

        AdNetworks.HideAd();
    }
Exemplo n.º 2
0
    public void HandleAdDisplay()
    {
        // handle character display

        if (adDisplayState ==
            UIPanelAdDisplayState.BannerBottom ||
            adDisplayState ==
            UIPanelAdDisplayState.BannerTop)
        {
            // TODO handle types...
            AdNetworks.ShowAd();
        }
        else
        {
            AdNetworks.HideAd();
        }
    }
Exemplo n.º 3
0
    public virtual void AnimateOut(float time, float delay)
    {
        if (!isVisible)
        {
            return;
        }

        //HideCamera();

        HandleHide();

        AdNetworks.HideAd();

        AnimateOutCenter(time, delay);
        AnimateOutLeft(time, delay);
        AnimateOutLeftBottom(time, delay);
        AnimateOutLeftTop(time, delay);
        AnimateOutRight(time, delay);
        AnimateOutRightBottom(time, delay);
        AnimateOutRightTop(time, delay);
        AnimateOutTop(time, delay);
        AnimateOutBottom(time, delay);

        ListClear();

        if (panelContainer != null)
        {
            if (!panelContainer.activeSelf || !panelContainer.activeInHierarchy)
            {
                panelContainer.Hide();
            }
            else
            {
                StartCoroutine(HidePanelCo(delay + .5f));
            }
        }

        isVisible = false;
    }