Exemplo n.º 1
0
        private static void CreateBehaviorTree()
        {
            string folderPath = AssetDatabase.GetAssetPath(Selection.activeObject);

            if ((File.GetAttributes(folderPath) & FileAttributes.Directory) != FileAttributes.Directory)
            {
                GUILayout.Label("请选择一个文件夹");
                return;
            }

            BehaviorTreeOperateUtility.CreateNewTree($"{folderPath}", "Root");
        }
Exemplo n.º 2
0
 public NodeProto GetNodeProtoCopy()
 {
     return(BehaviorTreeOperateUtility.NodeProtoParamClone(Proto));
 }