void RenderExternalCamera()
    {
        if (externalCamera == null)
        {
            return;
        }

        if (!externalCamera.gameObject.activeInHierarchy)
        {
            return;
        }

        var frameSkip = (int)Mathf.Max(externalCamera.config.frameSkip, 0.0f);

        if (Time.frameCount % (frameSkip + 1) != 0)
        {
            return;
        }

        // Keep external camera relative to the most relevant vr camera.
        externalCamera.AttachToCamera(TopInternal());

        externalCamera.RenderNear();
        externalCamera.RenderFar();
    }
        private void RenderExternalCamera()
        {
            if (!(externalCamera == null) && externalCamera.gameObject.activeInHierarchy)
            {
                int num = (int)Mathf.Max(externalCamera.config.frameSkip, 0f);
                if (Time.frameCount % (num + 1) == 0)

                {
                    externalCamera.AttachToCamera(TopInternal());
                    externalCamera.RenderNear();
                    externalCamera.RenderFar();
                }
            }
        }