示例#1
0
    // 删除节点
    private void DeleteNode()
    {
        NodeValue nodeValue = GetMouseInNode(_nodeList);

        if (!EditorUtility.DisplayDialog("提示", "确定要删除节点吗", "Yes", "No"))
        {
            return;
        }

        if (null != BehaviorManager.behaviorDeleteNode)
        {
            BehaviorManager.behaviorDeleteNode(nodeValue.id);
        }
    }