/// <summary> /// Add a Parallel Node /// </summary> /// <param name="successPolicy">Policy to success(High level)</param> /// <param name="failurePolicy">Policy to failure</param> public BehaviorTreeBuilder <T> Parallel(BehaviorPolicy successPolicy, BehaviorPolicy failurePolicy) { return(AddBehavior(new ParallelNode <T>(successPolicy, failurePolicy))); }
/// <summary> /// Node which will run children paralllely /// </summary> /// <param name="success">Policy to success(High level)</param> /// <param name="failure">Policy to failure</param> public ParallelNode(BehaviorPolicy success, BehaviorPolicy failure) : base() { SuccessPolicy = success; FailurePolicy = failure; }