Exemple #1
0
    /// <summary>
    /// by flipping the states of the various objects active/inactive in the scene, I can simulate the loading of the original assets, but under
    /// the desired stereoscopic and monoscopic states
    /// </summary>
    public void StereoSwitch()
    {
        //activate or deactivate mono assets
        Emulator1.SetActive(!Emulator1.activeSelf);
        System1.SetActive(!System1.activeSelf);
        reticleM.SetActive(!reticleM.activeSelf);

        //activate or deactivate stereo assets
        Emulator2.SetActive(!Emulator2.activeSelf);
        System2.SetActive(!System2.activeSelf);
        reticleL.SetActive(!reticleL.activeSelf);
        reticleR.SetActive(!reticleR.activeSelf);

        //Inititate blocker to reset/begin GVR interaction
        StartCoroutine(Block());
    }