コード例 #1
0
 private void DrawNodeWindow()
 {
     if (_window == null)
     {
         _window = EditorWindow.GetWindow <BTEditorWindow>();
     }
     subWindow_Rect = GUI.Window(22, new Rect(_window.position.width * 2 / 3, 0, _window.position.width / 3, _window.position.height), DrawSubUI, _subTitle);
 }
コード例 #2
0
    public static void ShowWindow()
    {
        if (_window == null)
        {
            _window = EditorWindow.GetWindow <BTEditorWindow>();
        }

        Reset();
        Vector2 initPosition = new Vector2(10, _window.position.height / 2 - 25);

        //BaseNode root = BTEditorManager.AddRootNode(initPosition);

        NodeDataManager.Reset();
        BTEditorManager.Reset();
    }
コード例 #3
0
 public static void OnClickConnection(Connection connection)
 {
     selectedConnection = connection;
     BTEditorWindow.UpdateSubWindow(selectedConnection);
 }
コード例 #4
0
 public static void OnClickNode(BaseNode node)
 {
     selectedNode = node;
     BTEditorWindow.UpdateSubWindow(selectedNode);
 }