public void OnGUI()
        {
            GUI.color = _defaultColor;
            GUILayout.Toggle(false, "Behaviour Debugger", GUI.skin.FindStyle("LODLevelNotifyText"));
            GUI.color = Color.white;

            var newManager = (BehaviourManager)EditorGUILayout.ObjectField("Selected Debugger:", SelectedManager, typeof(BehaviourManager), true);

            if (newManager != SelectedManager)
            {
                SelectedManager = newManager;
                if (newManager != null)
                {
                    SelectedTransform = SelectedManager.transform;
                }
            }

            if (!IsDebuggable(SelectedManager))
            {
                return;
            }

            _scrollPosition = EditorGUILayout.BeginScrollView(_scrollPosition);
            GUILayout.BeginHorizontal();
            DrawBlackboardKeyValues("Blackboard:", SelectedManager.CurrentBlackboard);
            DrawStats(SelectedManager.CurrentTree.DebugTools);
            GUILayout.EndHorizontal();
            DrawCommonGUI(SelectedManager.CurrentTree);
            EditorGUILayout.EndScrollView();

            Repaint();
        }
 public override void OnSelectionChange()
 {
     SelectedTransform = Selection.activeTransform;
     if (SelectedTransform != null)
     {
         SelectedManager = SelectedTransform.GetComponentInChildren <BehaviourManager>();
     }
     Init();
     Repaint();
 }