public virtual void Close() { if (Initialized) { view.Close(); } }
public void Push(IUIPanel view) { if (view != null) { mUIStack.Push(view.PanelInfo); view.Close(); mAllUI.Remove(view.Transform.name); } }
/// <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); } }