void OnWizardOtherButton() { if (mRoot == null) { { // foreach(var p in UIPanel.list.ToArray()) var __enumerator1 = (UIPanel.list.ToArray()).GetEnumerator(); while (__enumerator1.MoveNext()) { var p = (UIPanel)__enumerator1.Current; { p.gameObject.SetActive(false); } } } mRoot = new GameObject("root"); mRoot.AddComponent <UIPanel>(); mRootPanel = mRoot.GetComponent <UIPanel>(); mGos = EnumAssets.EnumGameObjectAtPath(Path); mCount = mGos.ToList().Count; } mIndex = 0; mGosEnumerator = mGos.GetEnumerator(); GetNextObj(); mTimer = DateTime.Now; }