Add Task to Execute All Children

ffbh

Member
This task would execute all child nodes sequentially, ignoring their return values. It would function similarly to the Sequence or Selector tasks but would ensure all children are run regardless of their success or failure states.

it is the method that copied from Selector
public override bool CanExecute()
{
return currentChildIndex < children.Count && executionStatus != TaskStatus.Success;
}

and the new task i removed the "executionStatus != TaskStatus.Success", Do you think this change is sufficient for the task to work as intended, or are there other parts of the code I should adjust?
public override bool CanExecute()
{
return currentChildIndex < children.Count;
}
 
Back
Top