public static void Close()
    {
        ReporterExpand reporter = new ReporterExpand();

        if (reporter.reporter == null)
        {
            Debug.LogError("reporter关闭失败,场景中没有Reporter组件!");
        }
        else
        {
            reporter.reporter.DoClose();
        }
    }
    void OnGUI()
    {
        if (GUI.Button(new Rect(Screen.width * 0.5f - 40, 10, 80, 50), "Debug"))
        {
            ResetTime = Time.time;
            if (ButtonClicked)
            {
                ButtonClicked = false;

                ReporterExpand.ShowOrHide();
            }
            else
            {
                ButtonClicked = true;
            }
        }
    }
    /// <summary>
    /// 显示或隐藏
    /// </summary>
    public static void ShowOrHide()
    {
        ReporterExpand reporter = new ReporterExpand();

        if (reporter.reporter == null)
        {
            Debug.LogError("reporter显示失败,场景中没有Reporter组件!");
        }
        else
        {
            if (reporter.reporter.show)
            {
                reporter.reporter.DoClose();
            }
            else
            {
                reporter.reporter.doShow();
            }
        }
    }