void Start() { // Disable if we don't support image effects if (!SystemInfo.supportsImageEffects) { enabled = false; return; } shader = Shader.Find("Hidden/ScreenTransitionImageEffect"); // Disable the image effect if the shader can't // run on the users graphics card if (shader == null || !shader.isSupported) { enabled = false; } // Grab platform/HMD information from the Game Manager GO //int num = PlatformDefines.hmd_id; GameObject gameManager = GameObject.FindGameObjectWithTag("Manager"); hmd = gameManager.GetComponent <PlatformDefines> (); scaleFactor(); }
private void Start() { // Grab platform/HMD information from the Game Manager GO GameObject gameManager = GameObject.FindGameObjectWithTag("Manager"); hmd = gameManager.GetComponentInParent <PlatformDefines>(); Debug.Log(hmd); // scale scaleFactor(); }