示例#1
0
    public void Pop()
    {
        if (Empty())
        {
            JDebugger.Log(this, "PanelStackManager Is Empty");
            return;
        }

        int lastIdx = _popupStack.Count - 1;

        UIPanel popup = _popupStack[lastIdx].GetComponent <UIPanel>();

        popup.StartClosePopup();
        popup.ClosePopup();

        _popupStack.RemoveAt(lastIdx);
    }