public void UpdateProfileValues() { Scope = ProfileManager.Instance.currentEvaluationScope; GLPlayerPrefs.SetBool(Scope, "UseLeapMotion", useLeapMotionToggle.isOn); GLPlayerPrefs.SetBool(Scope, "UsePitchGrab", usePitchGrabToggle.isOn); GLPlayerPrefs.SetBool(Scope, "UseHapticGlove", useUnityOpenGlove.isOn); GLPlayerPrefs.SetBool(Scope, "UseJoystic", useJoystickToggle.isOn); GLPlayerPrefs.SetBool(Scope, "MouseInput", mouseInput.isOn); GLPlayerPrefs.SetBool(Scope, "KinectInput", kinectInput.isOn); if (modeDropDown.value == 0) GLPlayerPrefs.SetBool(Scope, "BGIIESMode", false); else GLPlayerPrefs.SetBool(Scope, "BGIIESMode", true); if (visualization.value == 0) GLPlayerPrefs.SetBool(Scope, "visualizationPlane", false); else GLPlayerPrefs.SetBool(Scope, "visualizationPlane", true); GLPlayerPrefs.SetString(Scope, "DataOutput", dataOutputText.text); GLPlayerPrefs.SetInt(Scope, "UserID", Convert.ToInt32(userIdText.text)); GLPlayerPrefs.SetString(Scope, "Images", imagesText.text); GLPlayerPrefs.SetString(Scope, "FolderImageAssetText", folderImageAssetText.text); //GLPlayerPrefs.SetString(Scope, "FolderSmallText", folderSmallText.text); GLPlayerPrefs.SetString(Scope, "FileName", fileNameText.text); GLPlayerPrefs.SetString(Scope, "GroupPath", groupPathText.text); GLPlayerPrefs.SetInt(Scope, "Test", testDropdown.value); }
public void ModeDropDownChange() { if (modeDropDown.value == 0) { mouseInput.isOn = false; kinectInput.isOn = false; mouseInput.gameObject.SetActive(false); kinectInput.gameObject.SetActive(false); useLeapMotionToggle.gameObject.SetActive(true); useJoystickToggle.gameObject.SetActive(true); GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "BGIIESMode", false); } else { useLeapMotionToggle.isOn = false; useJoystickToggle.isOn = false; useLeapMotionToggle.gameObject.SetActive(false); useJoystickToggle.gameObject.SetActive(false); usePitchGrabToggle.gameObject.SetActive(false); kinectInput.gameObject.SetActive(true); mouseInput.gameObject.SetActive(true); GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "BGIIESMode", true); } }
private void Awake() { Instance = this; instanced = true; DontDestroyOnLoad(this); GLPlayerPrefs.SetBool("ProfileManagerScope3", "SimulationStarted", false); interfacesWithInputNames = new string[] { "Emotiv", "Kinect", "NeuroSky", "Keyboard", "BITalino", "TouchScreen", "LeapMotion" }; interfacesNames = new string[] { "Emotiv", "EyeTribe", "NeuroSky", "Kinect", "OcculusRift", "OpenGlove", "LeapMotion", "Gamepad", "Mouse", "Keyboard", "BITalino", "TouchScreen" }; }
public void SelectThisVisualization() { string Scope = ProfileManager.Instance.currentEvaluationScope; GLPlayerPrefs.SetString(Scope, "CurrentVisualization", visualizationName); visualizationController.UpdateCurrentSelectedVisualizationText(); ActionManager.Instance.UpdateVisualizationActionNames(planeVisualizationActionsNames); //DELETE THIS GLPlayerPrefs.SetBool(Scope, "BGIIESMode", true); GLPlayerPrefs.SetBool(Scope, "TIIESMode", false); }
public void toggleEyeTrackerMouse() { if (useMouse.isOn) { useEyeTribe.isOn = false; useEyeTribe.interactable = false; GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseMouse", true); GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseTheEyeTribe", false); } else { useEyeTribe.interactable = true; GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseMouse", false); } }
public void toggleEEGNeuroSky() { if (useNeuroSky.isOn) { useEmotiv.isOn = false; useEmotiv.interactable = false; GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseEmotivInsight", false); GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseNeuroSkyMindwave", true); } else { useEmotiv.interactable = true; GLPlayerPrefs.SetBool(ProfileManager.Instance.currentEvaluationScope, "UseNeuroSkyMindwave", false); } }
public void SelectThisVisualization() { string Scope = ProfileManager.Instance.currentEvaluationScope; GLPlayerPrefs.SetString(Scope, "CurrentVisualization", visualizationName); visualizationController.UpdateCurrentSelectedVisualizationText(); ActionManager.Instance.UpdateVisualizationActionNames(sphereVisualizationActionsNames); //DELETE THIS GLPlayerPrefs.SetBool(Scope, "BGIIESMode", false); GLPlayerPrefs.SetBool(Scope, "TIIESMode", false); bool wea = GLPlayerPrefs.GetBool(Scope, "BGIIESMode"); bool wea2 = GLPlayerPrefs.GetBool(Scope, "TIIESMode"); Debug.Log("el booleano de bgiiesMode es:" + wea); Debug.Log("el booleano de tiiesmode es:" + wea2); }
// 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 StartSimulation() { GLPlayerPrefs.SetBool(Scope, "UseLeapMotion", useLeapMotionToggle.isOn); GLPlayerPrefs.SetBool(Scope, "UsePitchGrab", usePitchGrabToggle.isOn); GLPlayerPrefs.SetBool(Scope, "UseHapticGlove", useHapticGloveToggle.isOn); GLPlayerPrefs.SetBool(Scope, "UseJoystic", useJoystickToggle.isOn); GLPlayerPrefs.SetString(Scope, "DataOutput", dataOutputText.text); GLPlayerPrefs.SetString(Scope, "LeftCom", leftComText.text); GLPlayerPrefs.SetString(Scope, "RightCom", rightComText.text); GLPlayerPrefs.SetInt(Scope, "UserID", Convert.ToInt32(userIdText.text)); GLPlayerPrefs.SetString(Scope, "Images", imagesText.text); GLPlayerPrefs.SetString(Scope, "FolderImageAssetText", folderImageAssetText.text); GLPlayerPrefs.SetString(Scope, "FolderSmallText", folderSmallText.text); GLPlayerPrefs.SetString(Scope, "FileName", fileNameText.text); GLPlayerPrefs.SetString(Scope, "GroupPath", groupPathText.text); GLPlayerPrefs.SetInt(Scope, "Test", testDropdown.value); SceneManager.LoadScene(sceneName); }
public void UpdateSelectedInterface() { GLPlayerPrefs.SetBool(Scope, key, instance.isOn); }
public void UpdateShowGazeIcon() { GLPlayerPrefs.SetBool(Scope, interfaceName + "ShowGazeIcon", showGazeIcon.isOn); }