private void Start()
        {
            Player       = GameObject.FindGameObjectWithTag("Player");
            HandInitCube = Player.transform.Find("FingerCubeReady").gameObject;
            HandObj      = Player.transform.Find("Finger").gameObject;

            INIT    = ExpInitializer.Instance;  //Initializes, read, and verify INIT file.
            SYNCEXP = SyncExperiment.Instance;
            WRITER  = new DataWriter(SYNCEXP.subjectNum, Player.name);
            EYES    = VREyeTracker.Instance;
            GAZED   = VRGazeTrail.Instance;
            HAND    = HandObj.GetComponent <Hand>();
            SYNCACT = HAND.transform.parent.GetComponent <SyncActors>();

            //TurnOff(Blocks);
            TurnOff(FixationObject);
            TurnOff(HandInitCube);

            if (INIT.IsAvailable)
            {
                GetTrialListAndShuffle();
            }
            _errorNumber = 0;
            _trialNumber = 1;
            _expPhase    = 0;
            JointProceed = false;
        }
        void Start()
        {
            _gaze = VRGazeTrail.Instance;

            TurnOff(TaskObjects);
            TurnOff(FixationObject);
        }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     stimuliLayer      = LayerMask.NameToLayer("StimuliTarget");
     gaze              = VRGazeTrail.Instance;
     hashGazeDurations = new Dictionary <string, float>();
     saveData();
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     // vSync needs to be disabled (Edit -> Projekt Settings... -> Quality -> V Sync Count: Don't Sync)
     Application.targetFrameRate = 90;
     stimuli             = transform;
     stimuli.localScale  = stimuliScale;
     stimuliSprite       = GetComponent <SpriteRenderer>();
     stimuliSprite.color = stimuliColor;
     gaze = VRGazeTrail.Instance;
 }
        private void Start()
        {
            // Get EyeTracker unity object
            _eyeTracker = VREyeTracker.Instance;
            if (_eyeTracker == null)
            {
                Debug.Log("Failed to find eye tracker, has it been added to scene?");
            }

            _gazeTrail       = VRGazeTrail.Instance;
            _lookAtSignColor = new Color(0, 1, 0, 0.2f);

            _highlightInfo = new ActiveObject();
            var textRenderer = _textCalibration.GetComponent <Renderer>();

            textRenderer.sortingOrder -= 1;
        }
Ejemplo n.º 6
0
    void Start()
    {
        player      = FindObjectOfType <Player>();
        gameMaster  = FindObjectOfType <GameMaster>();
        audioSource = FindObjectOfType <AudioSource>();
        eyeData     = FindObjectOfType <VRGazeTrail>();

        if (RetreatPosition != null)
        {
            transform.position = RetreatPosition.transform.position;
        }

        if (enemyLight != null)
        {
            enemyLight.intensity = 0;
        }
    }
Ejemplo n.º 7
0
        private void Start()
        {
            // Cache our prefab scripts.
            _eyeTracker       = VREyeTracker.Instance;
            _gazeTrail        = VRGazeTrail.Instance;
            _calibration      = VRCalibration.Instance;
            _saveData         = VRSaveData.Instance;
            _positioningGuide = VRPositioningGuide.Instance;

            // Move HUD to be in front of user.
            var etOrigin = VRUtility.EyeTrackerOriginVive;
            var holder   = _threeDText.transform.parent;

            holder.parent        = etOrigin;
            holder.localPosition = new Vector3(0, -1.35f, 3);
            holder.localRotation = Quaternion.Euler(25, 0, 0);
        }
 public EyesData(VREyeTracker eyes, VRGazeTrail gazed)
 {
     Head   = GameObject.FindGameObjectWithTag("MainCamera").transform;
     Eyes   = eyes;
     Target = gazed;
 }
 private void Start()
 {
     SYNC  = SyncExperiment.Instance;
     GAZED = VRGazeTrail.Instance;
 }
Ejemplo n.º 10
0
 // Use this for initialization
 void Start()
 {
     GAZED = VRGazeTrail.Instance;
     SYNC  = SyncExperiment_Debug.Instance;
 }