private void _startTask() { INFORM_BONSAI.start = 1; if (duringTask) { return; } if (taskCounter == 0) { sessionStartTime = DateTime.Now; sessionRunning = true; _log = new LogData(Application.dataPath + "/Results/Results_" + condition + "_" + taskType + ".txt"); } if (sessionRunning) { taskCounter += 1; duringTask = true; taskStartTime = DateTime.Now; displayMessage.add("Task started...", Color.green, displayStartTaskMessageTime); _canLogTunas = true; _logTunas = new LogTunas(Application.dataPath + "/Results/Tunas_" + condition + "_" + taskType + "_" + "task" + taskCounter + ".txt"); _logTunas.header(tunas.tunaData.Keys); } }