示例#1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("Open Behavior Tree"))
            {
                var rootSO = target as RootSO;
                GraphEditorWindow.Show(rootSO);
            }
        }
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("Open Behavior Tree"))
            {
                var bt = target as BehaviorTree;
                GraphEditorWindow.Show(bt);
            }
        }