//Called when correct selection void Right(string gameObjectName) { right++; //rightTemp++; //float timetaken = startTime - time; //timetaken.ToString("f2"); //File.AppendAllText(path, right + "," + wrong + ","); //File.AppendAllText(path, difficulty + "," + timetaken + "\n"); stroopTaskManager.colorSelected(true, gameObjectName, SaveInfo.roomStatus.difficulty); if (stroopTaskManager.nextTask()) { Refresh(); } //if (stroopItemIndex == numStimuli - 1) //{ // stroopItemIndex = 999; //trigger nextphase //} //else //{ // stroopItemIndex++; // Refresh(); //} // Debug.Log("Right"); }
//Called when correct selection void Right(string gameObjectName) { right++; //rightTemp++; rightDifficulty++; //float timetaken = startTime - time; //timetaken.ToString("f2"); //File.AppendAllText(path, right + "," + wrong + ","); //File.AppendAllText(path, difficulty + "," + timetaken + "\n"); stroopTaskManager.colorSelected(true, gameObjectName, SaveInfo.roomStatus.difficulty); if (stroopTaskManager.nextTask()) { Refresh(); } // Debug.Log("Right"); }