private bool CheckFields() { bool validInstitution; if (institutionFieldObj.activeSelf) { if (institutionField.text.Length > 3) { validInstitution = true; } else { validInstitution = false; } } else { validInstitution = true; } return(UtilsService.CheckName(nameField.text) && UtilsService.CheckEmail(emailField.text) && UtilsService.CheckPassword(passwordField.text) && userTypeDropdown.captionText.text != "Você é..." && validInstitution); }
private bool CheckFields() { return(UtilsService.CheckEmail(emailField.text) && UtilsService.CheckPassword(passwordField.text)); }