Esempio n. 1
0
 public void RecordTriggerEventAndSetNewTarget(Vector3 pos, FittsTime time, bool trialIsError)
 {
     // Return true when the last selection of the sequence have been made
     if (currentFittsSequence.AddTriggerEvent(pos, time, trialIsError))
     {
         // The sequence is added to statistic
         FittsStatistic.AddFittsSequence(currentFittsSequence);
         TargetsCreator.DestroyTargets();
         if (fittsIndex.Count != 0)
         {
             // There is still fitts sequence to be done
             // A new sequence is started
             currentFittsSequence = fittsSequences[fittsIndex.Pop()];
             currentFittsSequence.StartSequence();
         }
         else
         {
             // All sequences are done
             FittsExport.ExportFittsToCSV();
             EyeExport.ExportEyeToCSV();
         }
     }
     else
     {
         TargetsCreator.SetNextTargetIndexAndColor();
     }
 }
Esempio n. 2
0
    public void StartTest()
    {
        TargetsCreator.StartNewTest(float.Parse(distanceToTarget.text));

        // Create a new Fitts test with the parameter from the menu
        controller.GetComponent <VRController>().AddNewFittsTest(GetFittsTestParameter());

        // Set up new stats for the Fitts Test
        GameObject.Find("Fitts").GetComponent <EyeTracking>().CreateNewEyesStatistic();
        FittsStatistic.CreateNewStatistic();

        SetDregradationActive();
    }