Пример #1
0
    private static void ShowPanel(BasePanel panel, object[] @params = null)
    {
        if (panel.IsOpen())
        {
            return;
        }

        if (m_contentPanel != null)
        {
            m_preContentPanel = m_contentPanel;
            m_contentPanel.HidePanel();
        }

        m_contentPanel = panel;

        m_contentPanel.SetParams(@params);
        m_contentPanel.ShowPanel(m_contentLayer);
        m_contentPanel.LayerType = LayerType.Content;
    }