1.组合节点全部添加记忆功能;

2.优化并行节点和随机选择节点的逻辑;
3.修复随机选择节点和并行节点关闭时,子节点不能正确关闭的bug
This commit is contained in:
gongxh
2025-10-17 11:37:53 +08:00
parent 99ba5a210b
commit 3bd4fc25ab
18 changed files with 8827 additions and 84 deletions

View File

@@ -13,7 +13,7 @@ export class GameEntry extends Component {
private _tree: BT.BehaviorTree<sp.Skeleton> = null;
start(): void {
console.log("btConfig", this.btConfig);
let btTree1: BT.INodeConfig[] = this.btConfig.json["bt-tree1"]
let btTree1: BT.INodeConfig[] = this.btConfig.json["actor2"]
this._tree = BT.createBehaviorTree(btTree1, this.skeleton);
}