public void SetTickConfigMenuValues() { ActionManager.Instance.endTime = (tickSensibilityValue.value / 10); int aux = (int)tickSensibilityValue.value; tickSensibilityText.text = aux.ToString(); GLPlayerPrefs.SetFloat(Scope, "EmotivTickSensibility", ActionManager.Instance.endTime); }
public void UpdateTresholdValues() { float value = (float)tresholdSlider.value; int physicalResponseIndex = physicalResponseDropdown.value; tresholdNumber.text = value.ToString("0.0"); GLPlayerPrefs.SetFloat(scope, "BITalino" + physicalResponse[physicalResponseIndex] + "Treshold", value); }
public void UpdateHighestRangeValues() { float value = (float)highestRangeSlider.value; int physicalResponseIndex = physicalResponseDropdown.value; highestRangeNumber.text = value.ToString("0.0"); GLPlayerPrefs.SetFloat(scope, "BITalino" + physicalResponse[physicalResponseIndex] + "HighestRange", value); }
public void UpdateUntriggerValues() { int gesture = dbGestureDropdown.value; float trigger = (untriggerLevelValue.value / 10); int aux = (int)untriggerLevelValue.value; GLPlayerPrefs.SetFloat(Scope, interfaceName + dbGesturesName[gesture] + "UntriggerLevel", trigger); untriggerLevelText.text = aux.ToString(); }
public void UpdateUpperFacialExpressionTriggerValues() { int expresion = facialExpresionDropdown.value; float trigger = (facialExpressionTriggerLevel.value / 10); int aux = (int)facialExpressionTriggerLevel.value; GLPlayerPrefs.SetFloat(Scope, "Emotiv" + facialExpresionName[expresion] + "TriggerLevel", trigger); facialExpressionTriggerNumber.text = aux.ToString(); }
public void UpdateMentalCommandTriggerValues() { int command = mentalCommandDropdown.value; float trigger = (mentalCommandTriggerLevel.value / 10); int aux = (int)mentalCommandTriggerLevel.value; GLPlayerPrefs.SetFloat(Scope, interfaceName + mentalCommandName[command] + "CommandTriggerLevel", trigger); mentalCommandTriggerNumber.text = aux.ToString(); }
private void OnDisable() { UpdateActionsKinect(); if (ActionManager.Instance.bgiiesMode) { GLPlayerPrefs.SetInt(Scope, "openHandRightAssignedActionIndexBgiies", openHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "openHandLeftAssignedActionIndexBgiies", openHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "closeHandRightAssignedActionIndexBgiies", closeHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "closeHandLeftAssignedActionIndexBgiies", closeHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "lassoHandRightAssignedActionIndexBgiies", lassoHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "lassoHandLeftAssignedActionIndexBgiies", lassoHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture1AssignedActionIndexBgiies", gesture1AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture2AssignedActionIndexBgiies", gesture2AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture3AssignedActionIndexBgiies", gesture3AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture4AssignedActionIndexBgiies", gesture4AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture5AssignedActionIndexBgiies", gesture5AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture6AssignedActionIndexBgiies", gesture6AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture7AssignedActionIndexBgiies", gesture7AssignedActionIndex); GLPlayerPrefs.SetFloat(Scope, "gesture1TriggerLevelBgiies", gesture1TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture2TriggerLevelBgiies", gesture2TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture3TriggerLevelBgiies", gesture3TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture4TriggerLevelBgiies", gesture4TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture5TriggerLevelBgiies", gesture5TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture6TriggerLevelBgiies", gesture6TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture7TriggerLevelBgiies", gesture7TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture1UntriggerLevelBgiies", gesture1UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture2UntriggerLevelBgiies", gesture2UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture3UntriggerLevelBgiies", gesture3UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture4UntriggerLevelBgiies", gesture4UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture5UntriggerLevelBgiies", gesture5UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture6UntriggerLevelBgiies", gesture6UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture7UntriggerLevelBgiies", gesture7UntriggerLevel); } else { GLPlayerPrefs.SetInt(Scope, "openHandRightAssignedActionIndexVortices", openHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "openHandLeftAssignedActionIndexVortices", openHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "closeHandRightAssignedActionIndexVortices", closeHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "closeHandLeftAssignedActionIndexVortices", closeHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "lassoHandRightAssignedActionIndexVortices", lassoHandRightAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "lassoHandLeftAssignedActionIndexVortices", lassoHandLeftAssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture1AssignedActionIndexVortices", gesture1AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture2AssignedActionIndexVortices", gesture2AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture3AssignedActionIndexVortices", gesture3AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture4AssignedActionIndexVortices", gesture4AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture5AssignedActionIndexVortices", gesture5AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture6AssignedActionIndexVortices", gesture6AssignedActionIndex); GLPlayerPrefs.SetInt(Scope, "gesture7AssignedActionIndexVortices", gesture7AssignedActionIndex); GLPlayerPrefs.SetFloat(Scope, "gesture1TriggerLevelVortices", gesture1TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture2TriggerLevelVortices", gesture2TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture3TriggerLevelVortices", gesture3TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture4TriggerLevelVortices", gesture4TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture5TriggerLevelVortices", gesture5TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture6TriggerLevelVortices", gesture6TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture7TriggerLevelVortices", gesture7TriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture1UntriggerLevelVortices", gesture1UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture2UntriggerLevelVortices", gesture2UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture3UntriggerLevelVortices", gesture3UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture4UntriggerLevelVortices", gesture4UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture5UntriggerLevelVortices", gesture5UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture6UntriggerLevelVortices", gesture6UntriggerLevel); GLPlayerPrefs.SetFloat(Scope, "gesture7UntriggerLevelVortices", gesture7UntriggerLevel); } }