/// <summary> /// 界面出栈 /// </summary> public void PopUIStack() { //没有界面元素 if (UIStack.Count == 0) { return; } //出栈,并移除界面 IUIBase old_pop = UIStack.Pop(); old_pop.OnExiting(); //有界面元素 if (UIStack.Count > 0) { //推出旧的界面,重新显示栈顶界面 IUIBase newPop = UIStack.Peek(); newPop.OnResuming(); } }