protected void DrawStats(BehaviourDebugTools debugTools) { EditorGUILayout.BeginVertical(); { GUILayout.Label("Stats:", EditorStyles.boldLabel); EditorGUILayout.BeginVertical(EditorStyles.helpBox); { DrawKeyValue("Total Starts:", debugTools.GetTotalStartCallCount().ToString()); DrawKeyValue("Total Stops:", debugTools.GetTotalStopCallCount().ToString()); DrawKeyValue("Total Stopped:", debugTools.GetTotalStoppedCallCount().ToString()); DrawKeyValue("Active Timers: ", debugTools.GetTotalActiveTimers().ToString()); DrawKeyValue("Timer Pool Size: ", debugTools.GetTotalTimers().ToString()); DrawAdditionalStats(debugTools); } EditorGUILayout.EndVertical(); } EditorGUILayout.EndVertical(); }
protected override void InitDebugTools() { DebugTools = new BehaviourDebugTools(this, $"{Key} {OperatorHelpers.ToSymbolString(ConditionOperator)} {ConditionValue}"); }
protected virtual void DrawAdditionalStats(BehaviourDebugTools debugTools) { }
protected override void InitDebugTools() { DebugTools = new BehaviourDebugTools(this, "?"); }