///Is the blackboard parent of the target child blackboard upward hierarchy or the target itself public static bool IsPartOf(this IBlackboard blackboard, IBlackboard child) { if (blackboard == null) { return(false); } if (blackboard == child) { return(true); } return(blackboard.IsPartOf(child.parent)); }