예제 #1
0
    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();
    }
예제 #2
0
    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();
    }