Ejemplo n.º 1
0
        /// <summary>
        /// 关闭并卸载UI
        /// </summary>
        /// <param name="behaviourName"></param>
        public void CloseUI(string behaviourName)
        {
            IUIBehaviour behaviour = null;

            mAllUI.TryGetValue(behaviourName, out behaviour);

            if (null != behaviour)
            {
                behaviour.Close();
                mAllUI.Remove(behaviourName);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 关闭并卸载UI
        /// </summary>
        /// <param name="behaviourName"></param>
        public void CloseUI(string behaviourName)
        {
            IUIBehaviour behaviour = null;

            mAllUI.TryGetValue(behaviourName, out behaviour);

            if (null != behaviour)
            {
                behaviour.Close();
                mAllUI.Remove(behaviourName);
                mUIPanelStack.RemoveUI(behaviourName, behaviour);
                mLayerLogic.OnUIPanelClose(behaviour as QUIBehaviour);
                ReSetLayerIndexDirty();
            }
        }