/////////////////////////////////////////////////////////////////////////////// // 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"); }
void Awake() { if (instance == null) { instance = this; } txtPrint = ""; txtFPS = ""; if (showScreenDebugText) { debugTextPool.Clear(); } }
/////////////////////////////////////////////////////////////////////////////// // 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 }
/////////////////////////////////////////////////////////////////////////////// // 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 }
/////////////////////////////////////////////////////////////////////////////// // 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"); }
/////////////////////////////////////////////////////////////////////////////// // 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 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; } } }
/////////////////////////////////////////////////////////////////////////////// // 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"); }