private void NotifyControlGroupsOfSubjectDescendants( IEnumerable <TransformUtils.ITransformDP> cached_subject_descendants_and_paths) { var groups = TransformUtils.GetComponentsInDescendants <TargetGroupBase>(transform, true) .OfType <ITargetGroup>(); foreach (var group in groups) { group.OnFindMatchingTargetsInDescendants(cached_subject_descendants_and_paths); } }
private IEnumerable <ITargetGroup> GetAllTargetGroups() { return(TransformUtils.GetComponentsInDescendants <TargetGroupBase>(transform, true) .OfType <ITargetGroup>()); }