示例#1
0
    /// <summary>
    /// 出栈并移除显示
    /// </summary>
    public void PopPanel()
    {
        if (m_PanelStack.Count <= 0)
        {
            return;
        }
        UIBasePanel topPanel = m_PanelStack.Pop();

        topPanel.OnExit();

        if (m_PanelStack.Count <= 0)
        {
            return;
        }
        topPanel = m_PanelStack.Peek();
        topPanel.OnResume();
    }