public void UnregisterMiniWindow(MiniWindow miniWindow)
        {
            if (!_miniWindows.Contains(miniWindow))
            {
                return;
            }

            _miniWindows.Remove(miniWindow);
        }
        internal void UnregisterMiniWindow(MiniWindow miniWindow)
        {
            if (!m_MiniWindows.Contains(miniWindow))
            {
                return;
            }

            m_MiniWindows.Remove(miniWindow);
        }
        public void RegisterMiniWindow(MiniWindow miniWindow)
        {
            if (_miniWindows.Contains(miniWindow))
            {
                return;
            }

            _miniWindows.Add(miniWindow);
        }
        internal void RegisterMiniWindow(MiniWindow miniWindow)
        {
            if (m_MiniWindows.Contains(miniWindow))
            {
                return;
            }

            m_MiniWindows.Add(miniWindow);
        }
        public float GetRemainingHeight(MiniWindow exclude = null)
        {
            float totalHeight = 0;

            foreach (RectTransform child in contentPanel)
            {
                if (exclude == null || child.gameObject != exclude.gameObject)
                {
                    totalHeight += child.rect.size.y;
                }
            }

            return(contentPanel.rect.size.y - totalHeight);
        }