Introduce `clearSubtree` to recursively reset status for an entity and all its descendants. This ensures that when a task reaches a terminal state, its entire branch is properly reset. Also refactor the Tetris example to use a sequential task node within the behavior tree. |
||
|---|---|---|
| .. | ||
| commands.ts | ||
| components.ts | ||
| game.ts | ||
| input.ts | ||
| main.ts | ||
| render.ts | ||