Ejemplo n.º 1
0
 // Token: 0x060032E5 RID: 13029 RVA: 0x000FFF55 File Offset: 0x000FE355
 public static void SetActive(GameObject go, bool state, bool compatibilityMode)
 {
     if (go)
     {
         if (state)
         {
             NGUITools.Activate(go.transform, compatibilityMode);
             NGUITools.CallCreatePanel(go.transform);
         }
         else
         {
             NGUITools.Deactivate(go.transform);
         }
     }
 }
Ejemplo n.º 2
0
    private static void CallCreatePanel(Transform t)
    {
        UIWidget component = t.GetComponent <UIWidget>();

        if (component != null)
        {
            component.CreatePanel();
        }
        int i          = 0;
        int childCount = t.childCount;

        while (i < childCount)
        {
            NGUITools.CallCreatePanel(t.GetChild(i));
            i++;
        }
    }