| 123456789101112131415161718192021222324 |
- using Model;
- namespace BehaviorTree
- {
- [Node(NodeType.Sequence)]
- internal class Sequence: Node
- {
- public Sequence(NodeConfig config): base(config)
- {
- }
- public override bool Run(BlackBoard blackBoard)
- {
- foreach (var child in this.children)
- {
- if (!child.Run(blackBoard))
- {
- return false;
- }
- }
- return true;
- }
- }
- }
|