예제 #1
0
    public static void _InitializeMainCamera()
    {
        /*
         *      Called automatically in the VRDOC_Camera script.
         */
        VRDOC_Cam = Object.FindObjectOfType <VRDOC_Camera>();

        if (!VRDOC_Cam)
        {
            Debug.Log("VRDOC Error: No VRDOC_Camera script found attached to the main camera!");
        }
    }
예제 #2
0
    private void Awake()
    {
        instance      = this;
        _VRDOC_Camera = this;
        VR_CAMERA     = GetComponent <Camera>();

        if (VR_CAMERA == null)
        {
            Debug.LogError("VRDOC Error: The VRDOC_Camera component should be attached to your main camera!");
        }

        VerifyTransparentLayer();
        VRDOC_API._InitializeMainCamera();
    }