/// <summary> /// 隐藏UI /// </summary> /// <param name="uiBehaviourName"></param> public void HideUI(string uiBehaviourName) { IUIBehaviour uiBehaviour = null; if (mAllUI.TryGetValue(uiBehaviourName, out uiBehaviour)) { uiBehaviour.Hide(); } }
/// <summary> /// 隐藏UI /// </summary> /// <param name="uiBehaviourName"></param> public void HideUI(string uiBehaviourName) { IUIBehaviour uiBehaviour = null; if (mAllUI.TryGetValue(uiBehaviourName, out uiBehaviour)) { uiBehaviour.Hide(); mLayerLogic.OnUIPanelHide(uiBehaviour as UIPanel); ReSetLayerIndexDirty(); } }