public void AddChildCurvesToList(List <CurveState> curves, AnimationHierarchyData data) { if (!this.expanded) { return; } FoldoutComponentState[] components = this.components; for (int i = 0; i < components.Length; i++) { FoldoutComponentState foldoutComponentState = components[i]; foldoutComponentState.AddChildCurvesToList(curves, data); } int[] children = this.children; for (int j = 0; j < children.Length; j++) { int num = children[j]; data.states[num].AddChildCurvesToList(curves, data); } }
public void Hide(AnimationHierarchyData data, int level) { if (this.m_Components != null) { FoldoutComponentState[] components = this.m_Components; for (int i = 0; i < components.Length; i++) { FoldoutComponentState foldoutComponentState = components[i]; if (foldoutComponentState.expanded) { foldoutComponentState.Hide(data, this.obj.transform, level); } } } int[] children = this.children; for (int j = 0; j < children.Length; j++) { int num = children[j]; if (data.states[num].expanded) { data.states[num].Hide(data, level + 1); } } }