//释放界面 private void ReleaseView(UIViewBase view) { if (view != null) { view.OnExit(); Destroy(view.gameObject); } }
public void Pop() { UIViewBase view = null; if (_stack.Count > 0) { view = _stack.Peek(); _stack.Pop(); view.OnExit(); } Resume(); }