Exemple #1
0
    public void Show(ePopupMode mode, params object[] objs)     //重载了上面的show
    {
        if (Application.isPlaying == false)
        {
            return;
        }

        //在这里只做了 停止当前的弹出框动画以及 讲现在的弹出框入栈的操作上面的show才是真正的show操作
        PopupBase obj = Load(mode);

        if (obj != null)
        {
            if (gameObject.activeInHierarchy == true && m_TWHide.IsPlaying())
            {
                m_TWHide.Stop();
            }

            StackPopup(new PopupInfo(mode, obj, objs));
            Show(true, obj.bShowImmediately);
        }
    }