Ejemplo n.º 1
0
    protected virtual void Start()
    {
        //IL_001f: Unknown result type (might be due to invalid IL or missing references)
        UIOrthoCamera componentInChildren = this.GetComponentInChildren <UIOrthoCamera>();

        if (componentInChildren != null)
        {
            Debug.LogWarning((object)"UIRoot should not be active at the same time as UIOrthoCamera. Disabling UIOrthoCamera.", componentInChildren);
            Camera component = componentInChildren.get_gameObject().GetComponent <Camera>();
            componentInChildren.set_enabled(false);
            if (component != null)
            {
                component.set_orthographicSize(1f);
            }
        }
        else
        {
            UpdateScale(false);
        }
    }
Ejemplo n.º 2
0
    protected virtual void Start()
    {
        UIOrthoCamera componentInChildren = base.GetComponentInChildren <UIOrthoCamera>();

        if (componentInChildren != null)
        {
            Debug.LogWarning("UIRoot should not be active at the same time as UIOrthoCamera. Disabling UIOrthoCamera.", componentInChildren);
            Camera component = componentInChildren.gameObject.GetComponent <Camera>();
            componentInChildren.enabled = false;
            if (component != null)
            {
                component.orthographicSize = 1f;
                return;
            }
        }
        else
        {
            this.UpdateScale(false);
        }
    }
Ejemplo n.º 3
0
    protected virtual void Start()
    {
        manualWidth = 1920;

        UIOrthoCamera oc = GetComponentInChildren <UIOrthoCamera>();

        if (oc != null)
        {
            Debug.LogWarning("UIRoot should not be active at the same time as UIOrthoCamera. Disabling UIOrthoCamera.", oc);
            Camera cam = oc.gameObject.GetComponent <Camera>();
            oc.enabled = false;
            if (cam != null)
            {
                cam.orthographicSize = 1f;
            }
        }
        else
        {
            Update();
        }
    }