public void UpdateCurrentObject() { Debug.Log("El valor de currentInterfaceDropdown es:" + currentInterfaceDropdown.value); string Scope = ProfileManager.Instance.currentEvaluationScope; if (!GLPlayerPrefs.GetBool(Scope, "use" + MOTIONSManager.Instance.interfacesWithInputNames[currentInterfaceDropdown.value])) { popUp.LaunchPopUpMessage("Interface not active", "Caution: The selected interface is not selected as being active for the evaluation"); } interfacesConfigurationArray[lastInterfaceUsed].SetActive(false); interfacesConfigurationArray[currentInterfaceDropdown.value].SetActive(true); lastInterfaceUsed = currentInterfaceDropdown.value; }
public void AddNewProfile() { string newProfile = newProfileInputField.text; if (ProfileManager.Instance.AddNewProfile(newProfile)) { popUpWindowView.LaunchPopUpMessage("Success", "The new profile was successfully added!"); //this can't be done like this, needs change. Transform these to pop-up logic. closeButtonProfileCreate.topBar.SetActive(false); closeButtonProfileCreate.contentWindow.SetActive(false); ReloadProfileDropdown(); } else { popUpWindowView.LaunchPopUpMessage("Creation failed", "The new profile name was already in use, please try again with a different name"); } }