Example #1
0
        public void OpenBehaviorEditor(GameObject go)
        {
            if (go == null)
            {
                return;
            }
            selectNodeName = "";
            CurTreeGO      = go;

            this.NewLoadPrefabTree();

            BTEditorWindow.ShowWindow();
            Game.EventSystem.Run(EventIdType.BehaviorTreeOpenEditor);
        }
Example #2
0
        public static void ShowWindow()
        {
            BTEditorWindow target = GetWindow <BTEditorWindow>("行为树编辑器", false);

            target.minSize = new Vector2(600f, 500f);
        }