Exemplo n.º 1
0
 private void ShowTreeStats(BehaviourTree tree)
 {
     if (EditorApplication.isPlaying && tree.IsInitialized())
     {
         EditorGUILayout.LabelField("Stats", EditorStyles.boldLabel);
         EditorGUILayout.LabelField("Total nodes", tree.Nodes.Length.ToString());
         EditorGUILayout.LabelField("Active timers", tree.ActiveTimerCount.ToString());
         EditorGUILayout.LabelField("Observer count", tree.blackboard ? tree.blackboard.ObserverCount.ToString() : "0");
     }
 }