コード例 #1
0
    private void OnHide()
    {
        UI3System.HideGrayScreen(this);
        if (gameObject != null)
        {
            if (m_wndType == UI3WndType.PopUp)
            {
                //高斯模糊
                SetActiveRapidBlur(true);
            }

            gameObject.SetActive(false);

            if (OnClose != null)
            {
                OnClose();
                OnClose = null;
            }
            UI3System.HideWindow(this.GetClassName(), gameObject);
        }
        UI3System.PopBack(this.GetClassName());
    }
コード例 #2
0
    private void OnBack(bool isHide = false)
    {
        UI3System.HideGrayScreen(this);
        if (gameObject != null)
        {
            if (isHide)
            {
                gameObject.SetActive(false);
                UI3System.HideWindow(this.GetClassName(), gameObject);
            }
            else
            {
                gameObject.SetActive(false);
                UI3System.destroyWindow(this.GetClassName(), gameObject);
            }

            if (OnClose != null)
            {
                OnClose();
                OnClose = null;
            }
            UI3System.BackPopup(this.GetClassName());
        }
    }