//!!!! //public bool HierarchyVisible //{ // get { return hierarchyVisible; } // set // { // if( hierarchyVisible == value ) // return; // hierarchyVisible = value; // rootComponent._UpdateVisibleInHierarchy( false ); // } //} void ProcessObjectsDeletionQueue() { while (objectsDeletionQueue.Count != 0) { var e = objectsDeletionQueue.GetEnumerator(); e.MoveNext(); Component c = e.Current; if (c.Parent != null) { c.RemoveFromParent(false); } else { objectsDeletionQueue.Remove(c); } } }
public static bool IsEqual(ESet <T> set1, ESet <T> set2) { if (set1.Count != set2.Count) { return(false); } var enum1 = set1.GetEnumerator(); var enum2 = set2.GetEnumerator(); while (enum1.MoveNext()) { enum2.MoveNext(); if (!Equals(enum1.Current, enum2.Current)) { return(false); } } return(true); }