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!"); } }
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(); }