private void Close()
        {
            windowSticky = false;

            _isVisible = false;

            if (window != null)
            {
                window.close();
                window = null;
            }

            if (compactWindow != null)
            {
                compactWindow.Close();
                compactWindow = null;
            }
        }
        private void OpenCompact()
        {
            if (SEP_UI_Loader.CompactPrefab == null)
            {
                return;
            }

            if (compactWindow != null)
            {
                compactWindow.FadeIn(false);

                return;
            }

            GameObject obj = Instantiate(SEP_UI_Loader.CompactPrefab) as GameObject;

            if (obj == null)
            {
                return;
            }

            obj.transform.SetParent(MainCanvasUtil.MainCanvas.transform, false);

            compactWindow = obj.GetComponent <SEP_Compact>();

            if (compactWindow == null)
            {
                return;
            }

            compactWindow.setWindow(this);

            compactWindow.SetPosition(getAnchor());

            compactWindow.gameObject.SetActive(true);

            _isVisible = true;
        }