void onDone() { string stressText = dataSaverScript.condition; string nlevelText = dataSaverScript.getLastN(); string ringSizeText = dataSaverScript.getLastRingSize(); string isPractice = dataSaverScript.getIsLastPractice().ToString(); string isBaseline = dataSaverScript.getLastIsBaseline().ToString(); string speed = dataSaverScript.moveSpeed.ToString(); this.writeValuesToFile(stressText, nlevelText, ringSizeText, isPractice, isBaseline, speed); this.lslScript.setMarker("eval_end_1_load_1"); float currrentTime = Time.time; SceneManager.LoadScene("N_back_input"); dataSaverScript.inSecondSession = true; }
void onDone() { string stressText = dataSaverScript.condition; string levelText = dataSaverScript.getLastN(); string ringSizeText = dataSaverScript.getLastRingSize(); string isPractice = dataSaverScript.getIsLastPractice().ToString(); string speed = dataSaverScript.moveSpeed.ToString(); string isBaseline = dataSaverScript.getLastIsBaseline().ToString(); this.writeValuesToFile(stressText, levelText, ringSizeText, isPractice, speed, isBaseline); this.lslScript.setMarker("eval_end_1_stress_1"); if (dataSaverScript.currentBlockIndex == 0 || ( dataSaverScript.currentBlockIndex == dataSaver.halfConditionIndex + 1 && dataSaverScript.inSecondSession == true)) { SceneManager.LoadScene("Instructions"); } else { // wre are not at the beginning of the first session and not at the beginning of the second // session so we need to show the show the load valuation now SceneManager.LoadScene("load_evaluation"); } }