mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
1.组合节点全部添加记忆功能;
2.优化并行节点和随机选择节点的逻辑; 3.修复随机选择节点和并行节点关闭时,子节点不能正确关闭的bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user