fluid-behavior-tree
fluid-behavior-tree copied to clipboard
Logic mislead in TaskParentBase
In TaskParentBase we have an End method, but this method does not execute. You can check this in TaskParentTest.
So that produces an interesting case when you need to understand was a Parallel task completed. Because all tasks invoke End themselves.
Parallel:
- ActionA (Success)
- ActionB (Continue)
Parallel say us that End will be called when all tasks are completed. But in that case, ActionA call End at the same time us returns Success status.
Hmmm, having trouble understanding here. The parallel is supposed to work like this from the docs "Runs all child nodes at the same time until they all return Success. Exits and stops all running nodes if ANY of them return Failure." A continue status is not a success so this seems like the expected functionality.
Can you provide a code sample that demonstrates your use case?
Haven't heard an update so closing this out. If the issue still isn't addressed happy to take another look at this