Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }