示例#1
0
        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();
        }
示例#2
0
 protected override void InitDebugTools()
 {
     DebugTools = new BehaviourDebugTools(this, $"{Key} {OperatorHelpers.ToSymbolString(ConditionOperator)} {ConditionValue}");
 }
示例#3
0
 protected virtual void DrawAdditionalStats(BehaviourDebugTools debugTools)
 {
 }
 protected override void InitDebugTools()
 {
     DebugTools = new BehaviourDebugTools(this, "?");
 }