public virtual void Close()
 {
     if (Initialized)
     {
         view.Close();
     }
 }
示例#2
0
 public void Push(IUIPanel view)
 {
     if (view != null)
     {
         mUIStack.Push(view.PanelInfo);
         view.Close();
         mAllUI.Remove(view.Transform.name);
     }
 }
示例#3
0
        /// <summary>
        /// 关闭并卸载UI
        /// </summary>
        /// <param name="behaviourName"></param>
        public void CloseUI(string behaviourName)
        {
            IUIPanel behaviour = null;

            mAllUI.TryGetValue(behaviourName, out behaviour);

            if (null != behaviour)
            {
                behaviour.Close();
                mAllUI.Remove(behaviourName);
            }
        }