/// <summary> /// 当前栈顶UI隐藏并增加一个新的UI /// </summary> /// <param name="UI"></param> public void HideTopAndAddUI(IUIBase UI) { if (m_UIStack.Count > 0) { IUIBase Top = m_UIStack.Peek(); if (Top != null) { Top.HideUI(); } } m_UIStack.Push(UI); }