Пример #1
0
        /// <summary>
        /// 移除栈顶并且显示栈顶的UI
        /// </summary>
        /// <param name="UI"></param>
        public void RemoveTopAndShowTop()
        {
            IUIBase UITop = m_UIStack.Pop();

            if (UITop != null)
            {
                UITop.DestroyIt();
            }

            //新的栈顶显示动画
            if (m_UIStack.Count > 0)
            {
                UITop = m_UIStack.Peek();

                if (UITop != null)
                {
                    UITop.ShowUI();
                }
            }
        }