コード例 #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();
     }
 }
コード例 #2
0
    public FittsTest(FittsTestParameter _testParameter)
    {
        testParameter = _testParameter;

        CreateRandomSequenceIndexSet();
        CreateFittsSequences();

        currentFittsSequence = fittsSequences[fittsIndex.Pop()];
        currentFittsSequence.StartSequence();
    }