예제 #1
0
    public void ShowGUI()
    {
        IEnumerator enumerator = base.transform.GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                object      obj         = enumerator.Current;
                Transform   transform   = (Transform)obj;
                IEnumerator enumerator2 = transform.GetEnumerator();
                try
                {
                    while (enumerator2.MoveNext())
                    {
                        object      obj2       = enumerator2.Current;
                        Transform   transform2 = (Transform)obj2;
                        GUICollider component  = transform2.gameObject.GetComponent <GUICollider>();
                        if (null != component)
                        {
                            component.ShowGUI();
                        }
                    }
                }
                finally
                {
                    IDisposable disposable;
                    if ((disposable = (enumerator2 as IDisposable)) != null)
                    {
                        disposable.Dispose();
                    }
                }
            }
        }
        finally
        {
            IDisposable disposable2;
            if ((disposable2 = (enumerator as IDisposable)) != null)
            {
                disposable2.Dispose();
            }
        }
        if (base.gameObject.activeSelf)
        {
            Transform transform3    = base.transform;
            Vector3   localPosition = transform3.localPosition;
            localPosition.x          = 0f;
            transform3.localPosition = localPosition;
        }
    }