Exemplo n.º 1
0
 private static void Activate(Transform t, bool compatibilityMode)
 {
     UGUITools.SetActiveSelf(t.get_gameObject(), true);
     if (compatibilityMode)
     {
         int i          = 0;
         int childCount = t.get_childCount();
         while (i < childCount)
         {
             Transform child = t.GetChild(i);
             if (child.get_gameObject().get_activeSelf())
             {
                 return;
             }
             i++;
         }
         int j           = 0;
         int childCount2 = t.get_childCount();
         while (j < childCount2)
         {
             Transform child2 = t.GetChild(j);
             UGUITools.Activate(child2, true);
             j++;
         }
     }
 }
Exemplo n.º 2
0
 private static void Deactivate(Transform t)
 {
     UGUITools.SetActiveSelf(t.get_gameObject(), false);
 }