Exemplo n.º 1
0
    /// <summary>
    ///
    /// </summary>
    public void OffPanel()
    {
        if (PanelStack.Count == 0)
        {
            return;
        }
        MyBasePanel panel = PanelStack.Pop();

        panel.OnExit();

        //if (PanelStack.Count != 0)
        //    PanelStack.Peek().OnResume();
    }
Exemplo n.º 2
0
    /// <summary>
    ///
    /// </summary>

    public void PushPanel(MyUiType panelType)
    {
        //????
        //if (PanelStack.Count != 0)
        //{
        //    PanelStack.Peek().OnPause();
        //}

        MyBasePanel basePanel = GetPanel(panelType);

        PanelStack.Push(basePanel);
        basePanel.OnEnter();
    }