void Start()
    {
        var error = EVRInitError.None;

        //vrSystem = OpenVR.Init(ref error, EVRApplicationType.VRApplication_Background);
        vrSystem = OpenVR.Init(ref error, EVRApplicationType.VRApplication_Scene);

        movingObj = GameObject.Find("MovingObj");
        script    = movingObj.GetComponent <RunExperiment>();
    }
Exemple #2
0
    void Awake()
    {
        // Get a reference to the TrackedObject component attached to the controller
        controller = GetComponent <SteamVR_TrackedObject>();

        // Find the MovingObj GameObject so we can call methods from the MoveObj script attached to it
        movingObj = GameObject.Find("MovingObj");
        script    = movingObj.GetComponent <RunExperiment>();

        waitingConfidence = false;
        practiceOver      = false;

        checkPress     = false;
        buttonReleased = false;
    }