Пример #1
0
 //释放界面
 private void ReleaseView(UIViewBase view)
 {
     if (view != null)
     {
         view.OnExit();
         Destroy(view.gameObject);
     }
 }
Пример #2
0
    public void Pop()
    {
        UIViewBase view = null;

        if (_stack.Count > 0)
        {
            view = _stack.Peek();
            _stack.Pop();
            view.OnExit();
        }
        Resume();
    }