public static void SetActiveChildren(GameObject go, bool state) { Transform transform = go.transform; if (state) { int i = 0; int childCount = transform.childCount; while (i < childCount) { Transform child = transform.GetChild(i); NGUITools.Activate(child); i++; } } else { int j = 0; int childCount2 = transform.childCount; while (j < childCount2) { Transform child2 = transform.GetChild(j); NGUITools.Deactivate(child2); j++; } } }
public static void SetActive(GameObject go, bool state) { if (!state) { NGUITools.Deactivate(go.transform); } else { NGUITools.Activate(go.transform); } }
// 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); } } }