Added practice mode

This commit is contained in:
Chris Midkiff 2018-11-30 15:32:34 -05:00
parent 50841fd69b
commit ef0ad1d90c

View File

@ -87,9 +87,9 @@ public class ExperimentController : MonoBehaviour {
{ {
trialIndex++; trialIndex++;
trialDotIndex = 0; trialDotIndex = 0;
dataSet.SaveDataSet(); if(participant.participantId != 9999) dataSet.SaveDataSet();
dataSet.Samples.Clear(); dataSet.Samples.Clear();
if (trialIndex < participant.trials.Length) if (trialIndex < participant.trials.Length && participant.participantId != 9999)
{ {
nextDot = FindDot(participant.trials[trialIndex][trialDotIndex]); nextDot = FindDot(participant.trials[trialIndex][trialDotIndex]);
Show(nextDot); Show(nextDot);
@ -103,7 +103,7 @@ public class ExperimentController : MonoBehaviour {
} }
else else
{ {
dataSet.SaveDataSet(); if (participant.participantId != 9999) dataSet.SaveDataSet();
} }
stopwatch.Start(); stopwatch.Start();