public void StartEvaluation() { string scope = ProfileManager.Instance.currentEvaluationScope; int scene = GLPlayerPrefs.GetInt(scope, "Scene"); GLPlayerPrefs.SetInt(scope, "LastUserIDUsed", GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID")); informationObjectInitialized = false; visualizationInitialized = false; //DELETE THIS clean the action mapping list in the action manager, should be triggered by "returning" in the escape-menu ActionManager.Instance.updateActionArrayList = new List <System.Action>(); initializeCsv(); //Set audio Settings for immersion AudioPreSettings audioSettings = new AudioPreSettings(); audioSettings.AudioConfiguration(scope); if (scene == 0) { SceneManager.LoadScene("TestScenarioA"); } else if (scene == 1) { SceneManager.LoadScene("TestScenarioB"); } else { SceneManager.LoadScene("EmotivTraining"); } //SceneManager.LoadScene("FullScene"); }
void SetBITalinoConfigMenuValues() { m_comPort.text = GLPlayerPrefs.GetString(scope, "BITalino ComPort"); m_baudRate.text = GLPlayerPrefs.GetInt(scope, "BITalino BaudRate").ToString(); m_samplingRate.text = GLPlayerPrefs.GetInt(scope, "BITalino SamplingRate").ToString(); m_buffSize.text = GLPlayerPrefs.GetInt(scope, "BITalino BuffSize").ToString(); }
/// <summary> /// Adds line to specified subfolder file under _filePath /// </summary> /// <param name="action"></param> /// <param name="objectId"></param> /// <param name="filePath"></param> /// <returns></returns> public bool AddLines(string action, string objectId, string subfolderFile) { var csv = new StringBuilder(); _actualPersonId = GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID"); Debug.Log("El valor de actualPersonId es:" + _actualPersonId); var actualHour = DateTime.Now.TimeOfDay; var actualTimestamp = DateTime.Now.Date.ToShortDateString(); var newLine = string.Format("{0},{1},{2},{3},{4}", _actualPersonId.ToString(), actualHour, actualTimestamp, action, objectId); csv.AppendLine(newLine); string auxPath = _filePath + subfolderFile; try { File.AppendAllText(auxPath, csv.ToString()); } catch (Exception e) { Debug.Log(e); } return(true); }
public CsvCreator(string filePath) { _filePath = filePath; _actualPersonId = GLPlayerPrefs.GetInt("Config", PersonId); AddLines("UserID", "-"); }
public void SetImmersionConfigMenuValues() { SetImmersionValues(GLPlayerPrefs.GetInt(scope, "Visual Immersion Level"), visualSlider, visualText); SetImmersionValues(GLPlayerPrefs.GetInt(scope, "Auditive Immersion Level"), auditiveSlider, auditiveText); AddArrayToDropdown(sceneSelector, sceneName); UpdateDropDownValues(); sceneSelector.RefreshShownValue(); }
public void SetMentalLevelsConfigMenuValues() { int level = mentalLevelsDropdown.value; mentalLevelActionsDropdow.value = ActionManager.Instance.GetMappedActionIndex(interfaceName, mentalLevelName[level]); SetTriggerValues(GLPlayerPrefs.GetInt(Scope, interfaceName + mentalLevelName[level] + "TriggerLevel"), triggerLevelValue, triggerLevelText); mentalLevelActionsDropdow.RefreshShownValue(); }
public bool UpdateCurrentProfile(int lastProfileUsedNumber) { currentProfile = lastProfileUsedNumber; GLPlayerPrefs.SetInt(profileManagerScope, "CurrentProfile", currentProfile); profileScope = profiles[currentProfile]; currentEvaluation = GLPlayerPrefs.GetInt(profileScope, "CurrentEvaluation"); evaluations = GLPlayerPrefs.GetStringArray(profileScope, "EvaluationNamesList"); currentEvaluationScope = profileScope + evaluations[currentEvaluation]; return(true); }
public void SetMentalCommandConfigMenuValues() { int command = mentalCommandDropdown.value; mentalCommandActionsDropdow.value = ActionManager.Instance.GetMappedActionIndex(interfaceName, mentalCommandName[command]); SetTriggerValues(GLPlayerPrefs.GetInt(Scope, interfaceName + mentalCommandName[command] + "CommandTicks"), mentalCommandSensibilityValue, mentalCommandSensibilityText); SetTriggerValues(GLPlayerPrefs.GetInt(Scope, interfaceName + mentalCommandName[command] + "CommandMistakes"), mentalCommandMistakeValue, mentalCommandMistakeText); SetTriggerValues(GLPlayerPrefs.GetFloat(Scope, interfaceName + mentalCommandName[command] + "CommandTriggerLevel") * 10, mentalCommandTriggerLevel, mentalCommandTriggerNumber); mentalCommandActionsDropdow.RefreshShownValue(); }
public void LoadActions() { string Scope = ProfileManager.Instance.currentEvaluationScope; //Obtaining action index actionIndexMental = new int[mentalCommandName.Length]; actionIndexFacial = new int[facialExpresionName.Length]; for (int i = 0; i < mentalCommandName.Length; i++) { actionIndexMental[i] = ActionManager.Instance.GetMappedActionIndex(interfaceName, mentalCommandName[i]); } for (int i = 0; i < facialExpresionName.Length; i++) { actionIndexFacial[i] = ActionManager.Instance.GetMappedActionIndex(interfaceName, facialExpresionName[i]); } //Obtaining mental commands ticks, mistakes and trigger level ticksIndex = new int[mentalCommandName.Length]; mistakesIndex = new int[mentalCommandName.Length]; commandTriggerLevelIndex = new float[mentalCommandName.Length]; for (int i = 0; i < mentalCommandName.Length; i++) { ticksIndex[i] = GLPlayerPrefs.GetInt(Scope, interfaceName + mentalCommandName[i] + "CommandTicks"); mistakesIndex[i] = GLPlayerPrefs.GetInt(Scope, interfaceName + mentalCommandName[i] + "CommandMistakes"); commandTriggerLevelIndex[i] = GLPlayerPrefs.GetFloat(Scope, interfaceName + mentalCommandName[i] + "CommandTriggerLevel"); } //Facial expression trigger level faceTriggerLevelIndex = new float[facialExpresionName.Length]; for (int i = 0; i < facialExpresionName.Length; i++) { faceTriggerLevelIndex[i] = GLPlayerPrefs.GetFloat(Scope, interfaceName + facialExpresionName[i] + "TriggerLevel"); } //Tie to action manager AddAction(0, mentalCommandCode[0]); AddAction(1, mentalCommandCode[1]); AddAction(2, mentalCommandCode[2]); AddAction(3, mentalCommandCode[3]); AddAction(4, mentalCommandCode[4]); AddAction(0, facialExpresionCode[0]); AddAction(1, facialExpresionCode[1]); AddAction(2, facialExpresionCode[2]); AddAction(3, facialExpresionCode[3]); }
void Start() { VisualizationManager.Instance.LoadVisualization(); scope = ProfileManager.Instance.currentEvaluationScope; int visualImmersionLevel = GLPlayerPrefs.GetInt(scope, "Visual Immersion Level"); int auditiveImmersionlevel = GLPlayerPrefs.GetInt(scope, "Auditive Immersion Level"); m_camera = Camera.main; LoadGameObjects(visualImmersionLevel); LoadGameObjectsByTag(auditiveImmersionlevel, maxAuditiveImmersionLevel, "A_Immersion_"); RenderingPathConfig(visualImmersionLevel); EnviromentLightiningConfig(visualImmersionLevel); QualitySettingsConfig(visualImmersionLevel); }
void ReloadUserIDText() { int aux1, aux2; aux1 = GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID"); aux2 = GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "LastUserIDUsed"); if (aux1 == aux2) { aux1++; GLPlayerPrefs.SetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID", aux1); } userIDText.text = aux1.ToString(); }
public void UpdateEvaluationTime() { string Scope = ProfileManager.Instance.currentEvaluationScope; int value = int.Parse(evaluationTimeInputField.text); if (value < 1 || value > 15) { popUpWindowView.LaunchPopUpMessage("Incorrect value", "Please enter a valid number between 1 and 15"); return; } GLPlayerPrefs.SetInt(Scope, "EvaluationTime", value); Debug.Log("El valor del timer del input field es: " + value); Debug.Log("El evaluation time es:" + GLPlayerPrefs.GetInt(Scope, "EvaluationTime")); }
bool CheckLimitations() { string Scope = ProfileManager.Instance.currentEvaluationScope; string currentObject = GLPlayerPrefs.GetString(Scope, "CurrentInformationObject"); if (currentObject.Equals("PlaneImage")) { int aux = GLPlayerPrefs.GetInt(Scope, "PlaneImageTest"); if (aux > 1) { visualizationController.popUp.LaunchPopUpScrolldown("Changes not applied", "Plane visualization was not meant to be used with Test 3 or 4, please select Test 1, 2 or change the Visualization. Changes will not be applied."); return(false); } } return(true); }
public void LoadActions() { string Scope = ProfileManager.Instance.currentEvaluationScope; actionIndex = new int[keyName.Length]; triggerLevelIndex = new int[keyName.Length]; for (int i = 0; i < keyName.Length; i++) { actionIndex[i] = ActionManager.Instance.GetMappedActionIndex(interfaceName, keyName[i]); triggerLevelIndex[i] = GLPlayerPrefs.GetInt(Scope, interfaceName + keyName[i] + "TriggerLevel"); } AddAction(0); AddAction(1); AddAction(2); }
public void SetVariables() { Scope = ProfileManager.Instance.currentEvaluationScope; useLeapMotionToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UseLeapMotion"); if (useLeapMotionToggle.isOn) { usePitchGrabToggle.enabled = true; usePitchGrabToggle.enabled = true; usePitchGrabToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UsePitchGrab"); } if (!(useLeapMotionToggle.isOn && useJoystickToggle.isOn) || !(mouseInput.isOn && kinectInput.isOn)) useUnityOpenGlove.interactable = false; useJoystickToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UseJoystic"); useUnityOpenGlove.isOn = GLPlayerPrefs.GetBool(Scope, "useUnityOpenGlove"); kinectInput.isOn = GLPlayerPrefs.GetBool(Scope, "KinectInput"); mouseInput.isOn = GLPlayerPrefs.GetBool(Scope, "MouseInput"); if (GLPlayerPrefs.GetBool(Scope, "BGIIESMode")) modeDropDown.value = 1; else modeDropDown.value = 0; if (GLPlayerPrefs.GetBool(Scope, "visualizationPlane")) visualization.value = 1; else visualization.value = 0; dataOutputText.text = GLPlayerPrefs.GetString(Scope, "DataOutput"); userIdText.text = GLPlayerPrefs.GetInt(Scope, "UserID").ToString(); imagesText.text = GLPlayerPrefs.GetString(Scope, "Images"); folderImageAssetText.text = GLPlayerPrefs.GetString(Scope, "FolderImageAssetText"); //folderSmallText.text = GLPlayerPrefs.GetString(Scope, "FolderSmallText"); fileNameText.text = GLPlayerPrefs.GetString(Scope, "FileName"); groupPathText.text = GLPlayerPrefs.GetString(Scope, "GroupPath"); testDropdown.value = GLPlayerPrefs.GetInt(Scope, "Test"); }
void ReloadSummaryData() { ReloadUserIDText(); informationObjectText.text = GLPlayerPrefs.GetString(ProfileManager.Instance.currentEvaluationScope, "CurrentInformationObject"); visualizationText.text = GLPlayerPrefs.GetString(ProfileManager.Instance.currentEvaluationScope, "CurrentVisualization"); immersionText.text = GLPlayerPrefs.GetString(ProfileManager.Instance.currentEvaluationScope, "CurrentImmersion"); ActionManager.Instance.LoadMappingActionsNames(); //Failsafe in case evaluation is new and timer isn't changed int aux = GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "EvaluationTime"); if (aux < 1) { aux = 1; GLPlayerPrefs.SetInt(ProfileManager.Instance.currentEvaluationScope, "EvaluationTime", aux); } evaluationTimeInputField.text = aux.ToString(); ReloadOutputPath(); }
public void Awake() { useLeapMotionToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UseLeapMotion"); usePitchGrabToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UsePitchGrab"); useHapticGloveToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UseHapticGlove"); useJoystickToggle.isOn = GLPlayerPrefs.GetBool(Scope, "UseJoystic"); dataOutputText.text = GLPlayerPrefs.GetString(Scope, "DataOutput"); leftComText.text = GLPlayerPrefs.GetString(Scope, "LeftCom"); rightComText.text = GLPlayerPrefs.GetString(Scope, "RightCom"); userIdText.text = GLPlayerPrefs.GetInt(Scope, "PersonId").ToString(); imagesText.text = GLPlayerPrefs.GetString(Scope, "Images"); folderImageAssetText.text = GLPlayerPrefs.GetString(Scope, "FolderImageAssetText"); folderSmallText.text = GLPlayerPrefs.GetString(Scope, "FolderSmallText"); fileNameText.text = GLPlayerPrefs.GetString(Scope, "FileName"); groupPathText.text = GLPlayerPrefs.GetString(Scope, "GroupPath"); testDropdown.value = GLPlayerPrefs.GetInt(Scope, "Test"); }
//So, how the logic works. The first action of the array of actions of both the currentVisualization and currentInformationObject arrays is a null. //Then if both are zero, there is no action asigned. //The current available actions array is a combination of both the visualization and object actions array, always having the visualization first and the // object array copied right after. //The first array is always the Visualization one, so his index always matches, from 0 (no action) to whatever limit (say 5, to say an example). //Following, the object index is always dependant on the length of the visualization index. For example if the size of the visualization index // is 6 (0 to 5), the first action of the object index will be 6 in the current actions index. For that reason, the object index is transformed // into an action available index by considering the length of the visualization index. //In the case someone changes the visualization, the configuration of the object actions will remain, because they're relative to the visualization index // and not dependant of it. /// <summary> /// Returns the current action list index of the given input, 0 by default. /// </summary> /// <param name="interfaceName"></param> /// <param name="inputName"></param> /// <returns></returns> public int GetMappedActionIndex(string interfaceName, string inputName) { string Scope = ProfileManager.Instance.currentEvaluationScope; string currentVisualization = GLPlayerPrefs.GetString(Scope, "CurrentVisualization"); string currentObject = GLPlayerPrefs.GetString(Scope, "CurrentInformationObject"); int visIndex = GLPlayerPrefs.GetInt(Scope, interfaceName + inputName + currentVisualization + "VisualizationIndex"); int objIndex = GLPlayerPrefs.GetInt(Scope, interfaceName + inputName + currentObject + "ObjectIndex"); if (visIndex != 0) { return(visIndex); } else if (objIndex != 0) { int aux = objIndex + currentVisualizationActionsNames.Length; return(aux); } else { return(0); } }
// Use this for initialization public void Awake() { Instance = this; DontDestroyOnLoad(this); //If there are no profiles found in the systems registry, it creates a new array of names. This is because there is no default value for arrays, but there are for all other data types used. if (!GLPlayerPrefs.GetBool(profileManagerScope, "RegistryFound")) { string[] aux = new string[1]; aux[0] = "Default Profile"; GLPlayerPrefs.SetStringArray(profileManagerScope, "ProfileNamesList", aux); GLPlayerPrefs.SetBool(profileManagerScope, "RegistryFound", true); aux = new string[1]; aux[0] = "Default Evaluation"; GLPlayerPrefs.SetStringArray("Default Profile", "EvaluationNamesList", aux); } profiles = GLPlayerPrefs.GetStringArray(profileManagerScope, "ProfileNamesList"); currentProfile = GLPlayerPrefs.GetInt(profileManagerScope, "CurrentProfile"); profileScope = profiles[currentProfile]; currentEvaluation = GLPlayerPrefs.GetInt(profileScope, "CurrentEvaluation"); evaluations = GLPlayerPrefs.GetStringArray(profileScope, "EvaluationNamesList"); currentEvaluationScope = profileScope + evaluations[currentEvaluation]; MOTIONSManager.Instance.initializeCsv(); }
public void AudioConfiguration(string scope) { int immersionLevel = GLPlayerPrefs.GetInt(scope, "Auditive Immersion Level"); AudioConfiguration audioConfig = AudioSettings.GetConfiguration(); switch (immersionLevel) { case 0: audioConfig.speakerMode = AudioSpeakerMode.Mono; audioConfig.sampleRate = 22050; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 1: audioConfig.speakerMode = AudioSpeakerMode.Mono; audioConfig.sampleRate = 22050; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 2: audioConfig.speakerMode = AudioSpeakerMode.Mono; audioConfig.sampleRate = 32000; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 3: audioConfig.speakerMode = AudioSpeakerMode.Stereo; audioConfig.sampleRate = 44100; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 4: audioConfig.speakerMode = AudioSpeakerMode.Stereo; audioConfig.sampleRate = 48000; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 5: audioConfig.speakerMode = AudioSpeakerMode.Stereo; audioConfig.sampleRate = 48000; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; case 6: audioConfig.speakerMode = AudioSpeakerMode.Stereo; audioConfig.sampleRate = 96000; audioConfig.dspBufferSize = 4096; AudioSettings.Reset(audioConfig); break; default: Debug.Log("Error: Auditive Immersion Level not allowed"); break; } }
public void ChangeUserIDButton() { int aux = GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID"); popUpWindowView.LaunchPopUpInputChangeMessage("Change user ID", "User ID: ", ChangeUserID, aux.ToString(), true); }
public void Awake() { groupImageCsvPath = GLPlayerPrefs.GetString("Config", "GroupPath"); test = (Test)GLPlayerPrefs.GetInt("Config", "Test"); }
public void Awake() { groupImageCsvPath = GLPlayerPrefs.GetString(ProfileManager.Instance.currentEvaluationScope, "PlaneImageGroupFilePath"); test = (Test)GLPlayerPrefs.GetInt(ProfileManager.Instance.currentEvaluationScope, "PlaneImageTest"); }
void UpdateDropDownValues() { sceneSelector.value = GLPlayerPrefs.GetInt(scope, "Scene"); }
void OnEnable() { Scope = ProfileManager.Instance.currentEvaluationScope; if (ActionManager.Instance.bgiiesMode) { gesture1TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture1TriggerLevelBgiies"); gesture2TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture2TriggerLevelBgiies"); gesture3TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture3TriggerLevelBgiies"); gesture4TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture4TriggerLevelBgiies"); gesture5TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture5TriggerLevelBgiies"); gesture6TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture6TriggerLevelBgiies"); gesture7TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture7TriggerLevelBgiies"); gesture1UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture1UntriggerLevelBgiies"); gesture2UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture2UntriggerLevelBgiies"); gesture3UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture3UntriggerLevelBgiies"); gesture4UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture4UntriggerLevelBgiies"); gesture5UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture5UntriggerLevelBgiies"); gesture6UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture6UntriggerLevelBgiies"); gesture7UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture7UntriggerLevelBgiies"); openHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "openHandRightAssignedActionIndexBgiies"); openHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "openHandLeftAssignedActionIndexBgiies"); closeHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "closeHandRightAssignedActionIndexBgiies"); closeHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "closeHandLeftAssignedActionIndexBgiies"); lassoHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "lassoHandRightAssignedActionIndexBgiies"); lassoHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "lassoHandLeftAssignedActionIndexBgiies"); gesture1AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture1AssignedActionIndexBgiies"); gesture2AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture2AssignedActionIndexBgiies"); gesture3AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture3AssignedActionIndexBgiies"); gesture4AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture4AssignedActionIndexBgiies"); gesture5AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture5AssignedActionIndexBgiies"); gesture6AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture6AssignedActionIndexBgiies"); gesture7AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture7AssignedActionIndexBgiies"); } else { gesture1TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture1TriggerLevelVortices"); gesture2TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture2TriggerLevelVortices"); gesture3TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture3TriggerLevelVortices"); gesture4TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture4TriggerLevelVortices"); gesture5TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture5TriggerLevelVortices"); gesture6TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture6TriggerLevelVortices"); gesture7TriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture7TriggerLevelVortices"); gesture1UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture1UntriggerLevelVortices"); gesture2UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture2UntriggerLevelVortices"); gesture3UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture3UntriggerLevelVortices"); gesture4UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture4UntriggerLevelVortices"); gesture5UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture5UntriggerLevelVortices"); gesture6UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture6UntriggerLevelVortices"); gesture7UntriggerLevel = GLPlayerPrefs.GetFloat(Scope, "gesture7UntriggerLevelVortices"); openHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "openHandRightAssignedActionIndexVortices"); openHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "openHandLeftAssignedActionIndexVortices"); closeHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "closeHandRightAssignedActionIndexVortices"); closeHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "closeHandLeftAssignedActionIndexVortices"); lassoHandRightAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "lassoHandRightAssignedActionIndexVortices"); lassoHandLeftAssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "lassoHandLeftAssignedActionIndexVortices"); gesture1AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture1AssignedActionIndexVortices"); gesture2AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture2AssignedActionIndexVortices"); gesture3AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture3AssignedActionIndexVortices"); gesture4AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture4AssignedActionIndexVortices"); gesture5AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture5AssignedActionIndexVortices"); gesture6AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture6AssignedActionIndexVortices"); gesture7AssignedActionIndex = GLPlayerPrefs.GetInt(Scope, "gesture7AssignedActionIndexVortices"); } SetActionNameByIndex(gesture1AssignedActionText, gesture1AssignedActionIndex); SetActionNameByIndex(gesture2AssignedActionText, gesture2AssignedActionIndex); SetActionNameByIndex(gesture3AssignedActionText, gesture3AssignedActionIndex); SetActionNameByIndex(gesture4AssignedActionText, gesture4AssignedActionIndex); SetActionNameByIndex(gesture5AssignedActionText, gesture5AssignedActionIndex); SetActionNameByIndex(gesture6AssignedActionText, gesture6AssignedActionIndex); SetActionNameByIndex(gesture7AssignedActionText, gesture7AssignedActionIndex); SetActionNameByIndex(openHandRightAssignedActionText, openHandRightAssignedActionIndex); SetActionNameByIndex(openHandLeftAssignedActionText, openHandLeftAssignedActionIndex); SetActionNameByIndex(closeHandRightAssignedActionText, closeHandRightAssignedActionIndex); SetActionNameByIndex(closeHandLeftAssignedActionText, closeHandLeftAssignedActionIndex); SetActionNameByIndex(lassoHandRightAssignedActionText, lassoHandRightAssignedActionIndex); SetActionNameByIndex(lassoHandLeftAssignedActionText, lassoHandLeftAssignedActionIndex); CleanKinectActions(); SetBasicGesturesConfigMenuValues(); SetDbGesturesConfigMenuValues(); ActionManager.Instance.ReloadProfileDropdown(dbGesturesActionsDropdown); ActionManager.Instance.ReloadProfileDropdown(basicGesturesActionsDropdown); }