void DrawBT()
 {
     if (Tree != null && Tree.Root != null)
     {
         EditorGUILayout.Space();
         EditorGUILayout.BeginVertical();
         PreviewUtil.Header("行为树:");
         rootInternel = 0;
         DrawNode(Root);
         EditorGUILayout.EndVertical();
     }
 }
        void DrawAttr()
        {
            if (Attr == null)
            {
                return;
            }
            EditorGUILayout.Space();
            EditorGUILayout.BeginVertical();
            PreviewUtil.Header("属性:");
            foreach (var item in Attr)
            {
                EditorGUILayout.LabelField(item.Key + ":" + UIUtil.TwoD(item.Value));
            }

            if (GUILayout.Button("刷新"))
            {
                RefreshAttr();
            }

            EditorGUILayout.EndVertical();
        }
 void DrawBone()
 {
     if (Bones == null)
     {
         return;
     }
     EditorGUILayout.Space();
     EditorGUILayout.BeginVertical();
     PreviewUtil.Header("角色骨骼信息:");
     for (int i = 0; i < Bones.Length; ++i)
     {
         if (Bones[i].Type != NodeType.None)
         {
             EditorGUILayout.ObjectField(new GUIContent(Bones[i].Type.ToString()), Bones[i].transform, typeof(Transform), true);
         }
         else
         {
             EditorGUILayout.ObjectField(new GUIContent(Bones[i].ExtendName.ToString()), Bones[i].transform, typeof(Transform), true);
         }
     }
     EditorGUILayout.EndVertical();
 }