示例#1
0
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////

    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void OnEnable()
    {
        if (target != curEdit)
        {
            curEdit = target as exDebugHelper;
        }
        offsetProp         = serializedObject.FindProperty("offset");
        printStyleProp     = serializedObject.FindProperty("printStyle");
        fpsStyleProp       = serializedObject.FindProperty("fpsStyle");
        fpsAnchorProp      = serializedObject.FindProperty("fpsAnchor");
        logStyleProp       = serializedObject.FindProperty("logStyle");
        timeScaleStyleProp = serializedObject.FindProperty("timeScaleStyle");
    }
示例#2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        txtPrint = "";
        txtFPS   = "";

        if (showScreenDebugText)
        {
            debugTextPool.Clear();
        }
    }
示例#3
0
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////

    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

#if EX2D
        txtPrint.text    = "";
        txtPrint.enabled = showScreenPrint_;

        txtFPS.text    = "";
        txtFPS.enabled = showFps_;

        txtLog.text    = "";
        txtLog.enabled = showScreenLog_;

        txtTimeScale.text    = "";
        txtTimeScale.enabled = enableTimeScaleDebug;

        if (showScreenDebugText)
        {
            debugTextPool.Init();
            for (int i = 0; i < debugTextPool.initData.Length; ++i)
            {
                GameObject textGO = debugTextPool.initData[i];
                textGO.transform.parent        = transform;
                textGO.transform.localPosition = Vector3.zero;
                textGO.GetComponent <exSpriteFont>().enabled = false;
            }
        }
#else
        // DISABLE {
        // logTimer = logInterval;
        // } DISABLE end
        txtPrint = "";
        txtFPS   = "";

        if (showScreenDebugText)
        {
            debugTextPool.Clear();
        }
#endif
    }
示例#4
0
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////

    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        // DISABLE {
        // logTimer = logInterval;
        // } DISABLE end
        txtPrint = "";
        txtFPS   = "";

        if (showScreenDebugText)
        {
            debugTextPool.Clear();
        }

        useGUILayout = false;
    }
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////

    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void OnEnable()
    {
        if (target != curEdit)
        {
            curEdit = target as exDebugHelper;
        }
#if EX2D
        debugTextPoolProp = serializedObject.FindProperty("debugTextPool");
        txtPrintProp      = serializedObject.FindProperty("txtPrint");
        txtFPSProp        = serializedObject.FindProperty("txtFPS");
        txtLogProp        = serializedObject.FindProperty("txtLog");
        txtTimeScaleProp  = serializedObject.FindProperty("txtTimeScale");
#else
        printStyleProp     = serializedObject.FindProperty("printStyle");
        fpsStyleProp       = serializedObject.FindProperty("fpsStyle");
        fpsAnchorProp      = serializedObject.FindProperty("fpsAnchor");
        logStyleProp       = serializedObject.FindProperty("logStyle");
        timeScaleStyleProp = serializedObject.FindProperty("timeScaleStyle");
#endif
    }
示例#6
0
 ///////////////////////////////////////////////////////////////////////////////
 // functions
 ///////////////////////////////////////////////////////////////////////////////
 // ------------------------------------------------------------------
 // Desc:
 // ------------------------------------------------------------------
 void OnEnable()
 {
     if ( target != curEdit ) {
         curEdit = target as exDebugHelper;
     }
     #if EX2D
     debugTextPoolProp = serializedObject.FindProperty ("debugTextPool");
     txtPrintProp = serializedObject.FindProperty ("txtPrint");
     txtFPSProp = serializedObject.FindProperty ("txtFPS");
     txtLogProp = serializedObject.FindProperty ("txtLog");
     txtTimeScaleProp = serializedObject.FindProperty ("txtTimeScale");
     #else
     printStyleProp = serializedObject.FindProperty ("printStyle");
     fpsStyleProp = serializedObject.FindProperty ("fpsStyle");
     logStyleProp = serializedObject.FindProperty ("logStyle");
     timeScaleStyleProp = serializedObject.FindProperty ("timeScaleStyle");
     #endif
 }
 ///////////////////////////////////////////////////////////////////////////////
 // functions
 ///////////////////////////////////////////////////////////////////////////////
 // ------------------------------------------------------------------
 // Desc:
 // ------------------------------------------------------------------
 void OnEnable()
 {
     if ( target != curEdit ) {
         curEdit = target as exDebugHelper;
     }
     propDebugTextPool = serializedObject.FindProperty ("debugTextPool");
 }
示例#8
0
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------
    void Awake()
    {
        if ( instance == null )
            instance = this;

        // DISABLE {
        // logTimer = logInterval;
        // } DISABLE end
        txtPrint = "";
        txtFPS = "";

        if ( showScreenDebugText ) {
            debugTextPool.Clear();
        }

        useGUILayout = false;
    }
示例#9
0
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------
    void Awake()
    {
        if ( instance == null )
            instance = this;

        txtPrint.text = "";
        txtFPS.text = "";
        txtLog.text = "";

        if ( showScreenDebugText ) {
            debugTextPool.Init();
            for ( int i = 0; i < debugTextPool.initData.Length; ++i ) {
                GameObject textGO = debugTextPool.initData[i];
                textGO.transform.parent = transform;
                textGO.transform.localPosition = Vector3.zero;
                textGO.GetComponent<exSpriteFont>().enabled = false;
            }
        }
    }
示例#10
0
 ///////////////////////////////////////////////////////////////////////////////
 // functions
 ///////////////////////////////////////////////////////////////////////////////
 // ------------------------------------------------------------------
 // Desc:
 // ------------------------------------------------------------------
 void OnEnable()
 {
     if ( target != curEdit ) {
         curEdit = target as exDebugHelper;
     }
     offsetProp = serializedObject.FindProperty ("offset");
     printStyleProp = serializedObject.FindProperty ("printStyle");
     fpsStyleProp = serializedObject.FindProperty ("fpsStyle");
     fpsAnchorProp = serializedObject.FindProperty ("fpsAnchor");
     logStyleProp = serializedObject.FindProperty ("logStyle");
     timeScaleStyleProp = serializedObject.FindProperty ("timeScaleStyle");
 }