节点运行状态添加到黑板中;修复黑板清理数据的逻辑

This commit is contained in:
gongxh
2025-09-04 15:13:24 +08:00
parent 7ed015c6bf
commit 2ab47b2a7b
4 changed files with 24 additions and 52 deletions

View File

@@ -58,8 +58,6 @@ export class BehaviorTree<T> {
* 清空黑板并重置所有节点状态
*/
public reset(): void {
this._blackboard.clear();
// 重置所有节点的状态
this._root.cleanupAll();
this._blackboard.clean();
}
}