public void performTechnique(string s) { if (s.Length < 9) { return; } int technique = s [0] - '0'; techniquesPermuted = new int[5]; for (int i = 1; i < 6; i++) { int tech = s [i] - '0'; techniquesPermuted [i - 1] = tech - 1; } string id = s.Substring(6, 3); currentUserID = id; // create a new log file UserStudyLogger.Instance.OpenLogFile(currentUserID); UnityEngine.Debug.Log("Initializing UserStudy"); justRested = false; practiceFrame = 0; handsManager.setTechnique(technique); IN_USER_STUDY = true; reset = true; disableImages = true; UnityEngine.Debug.Log("Created Log file"); hideUserIDMenu(); justManipulated = false; hideAllHolograms(); hologramIndex = 0; USER_STUDY_TECHNIQUE_INDEX = 0; for (int i = 0; i < NUM_TECHNIQUES; i++) { if (techniquesPermuted[i] == (technique - 1)) { USER_STUDY_TECHNIQUE_INDEX = i; USER_STUDY_TECHNIQUE = techniquesPermuted[i]; break; } } UnityEngine.Debug.Log("User study technique is " + USER_STUDY_TECHNIQUE); hideHologramAtIndex(0); doPractice = true; resetStats(); handsManager.instructionTitleText.text = "Instructions"; handsManager.counter = 0; timeToWait = 5; instructionSequence = USER_STUDY_TECHNIQUE * (NUM_PRACTICE_FRAMES + 1) + 1; showInstructions(); hideAllHolograms(); practiceFrame = 1; disableTimedButton = false; int trainingRoundNumber = practiceFrame + 1; int section = USER_STUDY_TECHNIQUE_INDEX + 1; handsManager.instructionTitleText.text = handsManager.techniqueNames[USER_STUDY_TECHNIQUE] + " Technique: Training"; handsManager.menuText.text = "Section " + section + " of " + NUM_TECHNIQUES + ", Training Round " + trainingRoundNumber; }