public void start_trial() { trialInfo[] tmp = new trialInfo[48]; //48 buildTrial(32, 16); //(32,16) trialCount++; StartCoroutine(DisplayStroop(48, tmp, false)); //48 }
public void start_test() { trialInfo[] test = new trialInfo[24]; //24 buildTrial(16, 8); //(16,8) Anims.SetTrigger("Start Test"); StartCoroutine(DisplayStroop(24, test, true)); //24 }
private void saveSingleTrial(trialInfo TrialInfo) { // Learning Curve Header //{ "word name", "ink color", "c/ic", "tablerow number", "pressed key", // "response (1=correct. 2=wrong. 3=timeout)", "RT (ms)" }; string wordName = TrialInfo.w; string inkColor = TrialInfo.color; string c_ic = TrialInfo.isCongruent ? "1" : "0"; string tablerow_number = "SHOULD WE REMOVE THIS"; string pressed_key = TrialInfo.keyPress; string response = TrialInfo.noResponse ? "3" : (TrialInfo.correct ? "1" : "2"); string RT = TrialInfo.responseTime.ToString(); // Assemble the data array here string[] data = { wordName, inkColor, c_ic, tablerow_number, pressed_key, response, RT }; learningCurveDataString += "\n" + string.Join(",", data); }