Ejemplo n.º 1
0
    public void PopupShow(Popup next)
    {
        if (current == next)
        {
            current.Init();
            current.AfterInit();
            return;
        }

        if (next == null || isBlock)
        {
            return;
        }

        Block();

        if (current != null)
        {
            next.previous = current;

            current.Hide(next.anim);

            if (current.blinds && !next.blinds)
            {
                blinds.Hide();
            }

            if (current.header && !next.header)
            {
                header.Hide();
            }
        }

        StartCoroutine(PopupShowFinalize(next));
    }