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(); } }
public FittsTest(FittsTestParameter _testParameter) { testParameter = _testParameter; CreateRandomSequenceIndexSet(); CreateFittsSequences(); currentFittsSequence = fittsSequences[fittsIndex.Pop()]; currentFittsSequence.StartSequence(); }