public void RécupérerUneChaîneContenantLesNombresImpairsAuFormatTextuel() { var nombres = new Nombres(keyValuePairs); var texteNombresImpairs = nombres.TexteNombresImpairs; // retourne une string en utilisant Linq (i.e sans utiliser de boucles) -> Aggregate + OrderBy Check.That(texteNombresImpairs).IsEqualTo("un, trois, cinq, sept, neuf"); }
public void RécupérerLesNombresPairsBis() { var nombres = new Nombres(otherKeyValuePairs); var nombresPairs = nombres.NombresPairs; // même propriété Check.That(nombresPairs).ContainsExactly(10, 74, 28, 66, 92); }
public static void guardarNuevoEstudiante(string usuario, string nombres, string apellidos, string correos) { EstudianteLoggeado = usuario; Nombres.Add(EstudianteLoggeado + ":" + nombres); Apellidos.Add(EstudianteLoggeado + ":" + apellidos); Correos.Add(EstudianteLoggeado + ":" + correos); }
public void RécupérerLes4NombresSupérieursA3Bis() { var nombres = new Nombres(otherKeyValuePairs); var quatreNombresSupérieursSuivant3 = nombres.QuatreNombresSupérieursSuivant3; // meme propriété Check.That(quatreNombresSupérieursSuivant3).ContainsExactly(10, 17, 23, 28); }
public void RécupérerLePremierNombreDontLeTexteContientPlusDe5CaractèresBis() { var nombres = new Nombres(otherKeyValuePairs); var premierNombreDontLeTexteContientPlusDe5Caractères = nombres.PremierNombreDontLeTexteContientPlusDe5Caractères; // meme propriété Check.That(premierNombreDontLeTexteContientPlusDe5Caractères).IsEqualTo("dix-sept"); }
public void RécupérerLesNombresPairs() { var nombres = new Nombres(keyValuePairs); var nombresPairs = nombres.NombresPairs; // getter seulement qui retourne un IEnumerable<int> en utilisant Linq (i.e sans utiliser de boucles) -> Where + Select Check.That(nombresPairs).ContainsExactly(4, 2, 8, 6); }
public void RécupérerLePremierNombreDontLeTexteContientPlusDe5Caractères() { var nombres = new Nombres(keyValuePairs); var premierNombreDontLeTexteContientPlusDe5Caractères = nombres.PremierNombreDontLeTexteContientPlusDe5Caractères; // retourne une string en utilisant Linq (i.e sans utiliser de boucles) -> First Check.That(premierNombreDontLeTexteContientPlusDe5Caractères).IsEqualTo("quatre"); }
public void RécupérerLes4NombresSupérieursA3() { var nombres = new Nombres(keyValuePairs); var quatreNombresSupérieursSuivant3 = nombres.QuatreNombresSupérieursSuivant3; // retourne un IEnumerable<int> en utilisant Linq (i.e sans utiliser de boucles) -> OrderBy + Skip + Take Check.That(quatreNombresSupérieursSuivant3).ContainsExactly(4, 5, 6, 7); }
public void RécupérerUneChaîneContenantLesNombresImpairsAuFormatTextuelBis() { var nombres = new Nombres(otherKeyValuePairs); var texteNombresImpairs = nombres.TexteNombresImpairs; // meme propriété Check.That(texteNombresImpairs).IsEqualTo("dix-sept, vingt-trois, cinquante et un, quatre-vingt-neuf"); }
/// <summary> /// se le agrega un comoponente Rigidbody y se desactivan las influencias externas /// le damos un valor random a la edad entre 15 y 100 /// y tomamos un nombre ademas de ponerlo en un lugar aleatorio del mapa /// entre las posiciones 10 y -10 en los ejes "x" y "z" /// </summary> public void ID() { age = Random.Range(15, 101); nombres = (Nombres)Random.Range(0, 20); Rigidbody rb = this.gameObject.AddComponent <Rigidbody>(); rb.useGravity = false; rb.isKinematic = true; this.gameObject.name = nombres.ToString(); float x = Random.Range(-10, 10); float z = Random.Range(-10, 10); this.gameObject.transform.position = new Vector3(x, 0, z); }
private bool ValidarCliente() { bool retorno = true; if (Nombres.Equals(string.Empty) || Apellidos.Equals(string.Empty) || FechaNacimiento == null || Sexo == null || EstadoCivil == null || !ValidarRutCliente()) { retorno = false; } return(retorno); }
/// <summary> /// Designar todo sobre el aldeano /// </summary> public void Start() { Rigidbody rb; this.gameObject.tag = "Villager"; rb = this.gameObject.AddComponent <Rigidbody>(); rb.constraints = RigidbodyConstraints.FreezeAll; rb.useGravity = false; nombres = (Nombres)Random.Range(0, 21); infoAlde.name = nombres.ToString(); age = Random.Range(15, 101); infoAlde.edad = age; runningSpeed = 10 / age; this.gameObject.name = nombres.ToString(); StartCoroutine(BuscaZombies()); }
private async void Nombres_Completed(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(cedula.Text)) { await DisplayAlert("Error", "Debe Ingresar Cedula", "Aceptar"); cedula.Focus(); return; } if (string.IsNullOrEmpty(Nombres.Text)) { await DisplayAlert("Error", "Debe Ingresar nombres y apellidos", "Aceptar"); Nombres.Focus(); return; } Visitas visita = new Visitas { Cedula = cedula.Text, Nombres = Nombres.Text, Empresa = empresa.Text, VisitaA = visitaA.Text, }; using (var datos = new DataAccess()) { datos.InsertVisita(visita); listaGrupo.ItemsSource = datos.GetVisitas(); } cedula.Text = string.Empty; Nombres.Text = string.Empty; await DisplayAlert("Confirmacion", "Visita agregada", "Aceptar"); } catch (Exception ea) { Debug.WriteLine("Error en Nombres_Completed, motivo: " + ea.Message); Analytics.TrackEvent("Error al ingresar nombre seleccionadas: " + ea.Message + "\n Escaner: " + Preferences.Get("LECTOR", "N/A")); } }
private bool Validar() { bool paso = true; ErrorProvider.Clear(); if (Nombres.Text == string.Empty) { ErrorProvider.SetError(Nombres, "El campo Nombre no puede estar vacio"); Nombres.Focus(); paso = false; } if (string.IsNullOrWhiteSpace(EstadoCivil.Text)) { ErrorProvider.SetError(EstadoCivil, "El campo Direccion no puede estar vacio"); EstadoCivil.Focus(); paso = false; } if (string.IsNullOrWhiteSpace(Direccion.Text)) { ErrorProvider.SetError(Direccion, "El campo Direccion no puede estar vacio"); Direccion.Focus(); paso = false; } if (string.IsNullOrWhiteSpace(Telefono.Text)) { ErrorProvider.SetError(Telefono, "El campo Direccion no puede estar vacio"); Telefono.Focus(); paso = false; } if (string.IsNullOrWhiteSpace(Email.Text)) { ErrorProvider.SetError(Email, "El campo Direccion no puede estar vacio"); Email.Focus(); paso = false; } return(paso); }
protected override void ObtenerObjetoEntity() { try { if (ContactoID != null && ContactoID.Value != Guid.Empty) { _entity.Id = ContactoID.Value; } if (Nombres.IsNotNull()) { _entity["firstname"] = Nombres; } if (Apellidos.IsNotNull()) { _entity["lastname"] = Apellidos; } if (Puesto.IsNotNull()) { _entity["jobtitle"] = Puesto; } if (Cuenta != null && Cuenta.IsNotEmpty()) { _entity["parentcustomerid"] = new EntityReference(Cuenta.NombreLogico, Cuenta.Id.Value); } if (MetodoContacto != null && MetodoContacto.IsNotEmpty()) { _entity["preferredcontactmethodcode"] = new OptionSetValue(MetodoContacto.Id.Value); } } catch (Exception ex) { _entity = null; } }
public Cliente(int PersonaId, Iden iden, Nombres Nombres, int Sueldo, int total) : base(PersonaId, iden, Nombres) { this.Sueldo = Sueldo; Encomienda = new List <Encomienda>(total); }
//KeyboardManager objTeclado = new KeyboardManager(); IEnumerator Start() { //------------------------- vectorSujeto = TransforEsfera.position; //------------------------- //get { return inputText.text; } Debug.Log("ESTO ES TEXTOOO " + texto); int nEsferas = 5; //link de la consulta donde se sustraen los datos WWW www = new WWW("http://es-la.dbpedia.org/sparql?default-graph-uri" + "=&query=select+%3Chttp%3A%2F%2Fes-la.dbpedia.org%2Fresource%2FEcuador%" + "3E+%3Fp+%3Fo+where+%7B%3Chttp%3A%2F%2Fes-la.dbpedia.org%2Fresource%2FEcuador%3E" + "+%3Fp+%3Fo%7D+LIMIT+" + 5 + "&format=application%2Fsparql-results%2Bjson&timeout=0&debug=on"); //espera cuando se carge los datos yield return(www); //para presentar en consola print(www.text); //leer los datos presentados JsonData data = JsonMapper.ToObject(www.text); //var pRed = GeneratedPosition(); for (int i = 0; i < nEsferas; i++) { GameObject textGo = new GameObject("Objeto"); GameObject textSujeto = new GameObject("Sujeto"); //var pBlue = GeneratedPosition(); //se crear una variable de Nombre Nombres nom = new Nombres(); //se ingresa a cada variable el dato que se sustrae nom.Sujeto = data["results"]["bindings"][i]["callret-0"]["value"].ToString(); nom.TypeSujeto = data["results"]["bindings"][i]["callret-0"]["type"].ToString(); nom.Predicado = data["results"]["bindings"][i]["p"]["value"].ToString(); nom.TypePredicado = data["results"]["bindings"][i]["p"]["type"].ToString(); nom.Objeto = data["results"]["bindings"][i]["o"]["value"].ToString(); nom.TypeObjeto = data["results"]["bindings"][i]["o"]["type"].ToString(); nombre.Add(nom); //Para ver el nombre del objeto string strObjeto; string strSujeto; strObjeto = nom.Objeto; strSujeto = nom.Sujeto; //texbox1.text = ("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); if (nom.Sujeto != " " && nom.TypeSujeto == "uri" && nom.Objeto != " " && nom.TypePredicado == "uri") { origin = Instantiate(sphere, vectorSujeto, Quaternion.identity); origin.GetComponent <Renderer>().material.color = Color.red; var traza = origin.AddComponent <LineRenderer>(); traza.startWidth = traza.endWidth = .2f; traza.useWorldSpace = true; traza.positionCount = 2; traza.SetPosition(0, vectorSujeto); destino = Instantiate(sphere, new Vector3(Random.Range(-30, -46), Random.Range(30, 37), -66.31f), Quaternion.identity); destino.GetComponent <Renderer>().material.color = Color.blue; //var po = origin.transform.position; //var de = destino.transform.position; traza.SetPosition(1, destino.transform.position); //Debug.DrawLine(po,de, Color.black); Debug.Log("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); //Para poner el texto de las esferas de objeto textGo.transform.position = destino.transform.position; //Para poner el texto de las esferas de objeto textSujeto.transform.position = origin.transform.position; TextMesh textMesh = textGo.AddComponent <TextMesh>(); TextMesh textMeshSujeto = textSujeto.AddComponent <TextMesh>(); textMesh.text = strObjeto; textMeshSujeto.text = strSujeto; //textGo.Color = new Color(1, 0, 1, 0.5f); //violeta transparente al 50% 100%, 64.7%, 0%, 1 textMesh.color = new Color(0, 255, 0, 1); textMeshSujeto.color = new Color(100, 64.7f, 0, 1); } } }
public Persona(int PersonaId, Iden iden, Nombres Nombres) { }
IEnumerator Start() { //link de la consulta donde se sustraen los datos WWW www = new WWW("http://es-la.dbpedia.org/sparql?default-graph-uri" + "=&query=select+%3Chttp%3A%2F%2Fes-la.dbpedia.org%2Fresource%2FEcuador%" + "3E+%3Fp+%3Fo+where+%7B%3Chttp%3A%2F%2Fes-la.dbpedia.org%2Fresource%2FEcuador%3E" + "+%3Fp+%3Fo%7D+LIMIT+" + 8 + "&format=application%2Fsparql-results%2Bjson&timeout=0&debug=on"); //espera cuando se carge los datos yield return(www); //para presentar en consola print(www.text); //leer los datos presentados JsonData data = JsonMapper.ToObject(www.text); var pRed = GeneratedPosition(); for (i = 0; i < nEsferas; i++) { GameObject textGo = new GameObject("Objeto"); GameObject textSujeto = new GameObject("Sujeto"); var pBlue = GeneratedPosition(); //se crear una variable de Nombre Nombres nom = new Nombres(); //se ingresa a cada variable el dato que se sustrae nom.Sujeto = data["results"]["bindings"][i]["callret-0"]["value"].ToString(); nom.TypeSujeto = data["results"]["bindings"][i]["callret-0"]["type"].ToString(); nom.Predicado = data["results"]["bindings"][i]["p"]["value"].ToString(); nom.TypePredicado = data["results"]["bindings"][i]["p"]["type"].ToString(); nom.Objeto = data["results"]["bindings"][i]["o"]["value"].ToString(); nom.TypeObjeto = data["results"]["bindings"][i]["o"]["type"].ToString(); nombre.Add(nom); //Para ver el nombre del objeto string strObjeto; string strSujeto; strObjeto = nom.Objeto; strSujeto = nom.Sujeto; texbox1.text = ("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); if (nom.Sujeto != " " && nom.TypeSujeto != " " && nom.Objeto != " " && nom.TypePredicado == "uri") { origin = Instantiate(sphere, pRed, Quaternion.identity); origin.GetComponent <MeshRenderer>().material = materialS; var traza = origin.AddComponent <LineRenderer>(); traza.startWidth = traza.endWidth = .2f; traza.useWorldSpace = true; traza.positionCount = 2; traza.SetPosition(0, pRed); //Para generar una textura creada llama linea //Material whiteDiffuseMat = new Material(Shader.Find("Unlit/linea")); //traza.material = whiteDiffuseMat; //Asignarle un color predeterminado en este caso black traza.material = materialP; //destino.GetComponent<MeshRenderer>().material = materialO; if (nom.TypeObjeto == "uri") { destino = Instantiate(sphere, pBlue, Quaternion.identity); //destino.GetComponent<Renderer>().material.color = Color.blue; destino.GetComponent <MeshRenderer>().material = materialO; } else { destino = Instantiate(cube, pBlue, Quaternion.identity); destino.GetComponent <MeshRenderer>().material = materialOL; } traza.SetPosition(1, pBlue); //textoo.SetActive(destino); //textoo.transform.position = destino.transform.position; Debug.Log("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); //Para poner el texto de las esferas de objeto textGo.transform.position = destino.transform.position; //Para poner el texto de las esferas de objeto textSujeto.transform.position = origin.transform.position; TextMesh textMesh = textGo.AddComponent <TextMesh>(); TextMesh textMeshSujeto = textSujeto.AddComponent <TextMesh>(); textMesh.text = strObjeto; textMeshSujeto.text = strSujeto; //textGo.Color = new Color(1, 0, 1, 0.5f); //violeta transparente al 50% 100%, 64.7%, 0%, 1 textMesh.color = new Color(0, 255, 0, 1); textMeshSujeto.color = new Color(100, 64.7f, 0, 1); } } }
private Name CreateName(Nombres name, Frecuency frecuency) => new Name(name.Nombre, name.EsCompuesto, frecuency, Gender.Create(name.Sexo));
private async void Acep_Clicked(object sender, EventArgs e) { var nombres = Nombres.Text; var apellidos = Apellidos.Text; var direccion = Direccion.Text; var celular = Celular.Text; var estrato = Estrato.Text; var fechaNacimiento = FechaNacimiento.Date; var correo = Correo.Text; var contraseña = Contraseña.Text; if (string.IsNullOrEmpty(nombres)) { await DisplayAlert("Validación", "Ingrese los Nombres", "Aceptar"); Nombres.Focus(); return; } if (string.IsNullOrEmpty(apellidos)) { await DisplayAlert("Validación", "Ingrese los Apellidos", "Aceptar"); Apellidos.Focus(); return; } if (string.IsNullOrEmpty(direccion)) { await DisplayAlert("Validación", "Ingrese la Direccion", "Aceptar"); Direccion.Focus(); return; } if (string.IsNullOrEmpty(celular)) { await DisplayAlert("Validación", "Ingrese el numero de Celular", "Aceptar"); Celular.Focus(); return; } if (string.IsNullOrEmpty(estrato)) { await DisplayAlert("Validación", "Ingrese el Estrato", "Aceptar"); Estrato.Focus(); return; } if (fechaNacimiento == DateTime.Now) { await DisplayAlert("Validación", "Ingrese la FechaNacimiento", "Aceptar"); FechaNacimiento.Focus(); return; } if (string.IsNullOrEmpty(correo)) { await DisplayAlert("Validación", "Ingrese el Correo", "Aceptar"); Correo.Focus(); return; } if (string.IsNullOrEmpty(contraseña)) { await DisplayAlert("Validación", "Ingrese la Contraseña", "Aceptar"); Contraseña.Focus(); return; } HttpClient publicaciones = new HttpClient(); publicaciones.BaseAddress = new Uri("http://192.168.137.1"); var autenticacion = new clsLogin { Nombres = nombres, Apellidos = apellidos, Direccion = direccion, Celular = celular, Estrato = estrato, FechaNacimiento = Convert.ToDateTime(fechaNacimiento), Correo = correo, Contraseña = contraseña }; string json = JsonConvert.SerializeObject(autenticacion); StringContent content = new StringContent(json, Encoding.UTF8, "application/json"); var request = await publicaciones.PostAsync("Login/api/CrearPerfil", content); if (request.IsSuccessStatusCode) { var responseJson = await request.Content.ReadAsStringAsync(); var response = JsonConvert.DeserializeObject <clsLogin>(responseJson); await Navigation.PushAsync(new Login()); } else { await DisplayAlert("Error", "Lo sentimos, ocurrio un error con el servidor", "Aceptar"); } }
private IEnumerator ieH() { //Para leer el archivo FileDataReader(); //obtengo el texto del inpput obtener = inputText.text; //lo transformo a String string textoO = obtener.Trim(); //transformo en minusculas string a = textoO.ToLower(); //La primera va a ser mayuscula string resul = CultureInfo.InvariantCulture.TextInfo.ToTitleCase(a); Debug.Log("LO QUE SE OBTIENE DEL INPUT " + resul); //link de la consulta donde se sustraen los datos WWW www = new WWW("https://dbpedia.org/sparql?default-graph" + "-uri=http%3A%2F%2Fdbpedia.org&query=CONSTRUCT+%0D%0A%7B%3FuriPais+" + "%3Ftype+%3Fclass+.+%0D%0A%3FuriPais+%3Fetiqueta+%3FnombrePais+.+%7" + "D%0D%0AWHERE%7B%0D%0Avalues+%3Ftypev%7Brdf%3Atype%7D%0D%0Avalues" + "+%3Fetiquetav%7Brdfs%3Alabel%7D%0D%0Avalues+%3Fclass+%7Bdbo%3ACountry" + "%7D%0D%0A%3FuriPais+%3Ftype+%3Fclass.%0D%0A%3FuriPais+%3Fetiqueta+%3" + "FnombrePais.%0D%0A%3FuriPais+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2" + "Fowl%23sameAs%3E+%3Fo.%0D%0AFILTER+%28%3FnombrePais+%3D+%22" + resul + "%22%" + "40en%29%0D%0A%7D&format=application%2Fsparql-results%2Bjson&CXML" + "_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on&run=+Run+Query+"); //espera cuando se carge los datos yield return(www); //para presentar en consola print(www.text); //leer los datos presentados JsonData data = JsonMapper.ToObject(www.text); //Para ver el nombre del objeto string strObjeto; string strPredicado; string strSujeto; int num = 28; //se declaran las palabras que se van a mostrar en el entorno string palabraSujeto1; string palabraSujeto2; string palabraPredicado1; string palabraPredicado2; string palabraObjeto1; string palabraObjeto2; string nuevoSujeto; string nuevoPredicado; string nuevoObjeto; for (int i = 0; i < 3; i++) { GameObject textGo = new GameObject("ObjetoSTALIN"); GameObject textSujeto = new GameObject("SujetoSTALIN"); GameObject textPredicado = new GameObject("PredicadoSTALI"); //se crear una variable de Nombre Nombres nom = new Nombres(); //se ingresa a cada variable el dato que se sustrae nom.Sujeto = data["results"]["bindings"][i]["s"]["value"].ToString(); nom.TypeSujeto = data["results"]["bindings"][i]["s"]["type"].ToString(); nom.Predicado = data["results"]["bindings"][i]["p"]["value"].ToString(); nom.TypePredicado = data["results"]["bindings"][i]["p"]["type"].ToString(); nom.Objeto = data["results"]["bindings"][i]["o"]["value"].ToString(); nom.TypeObjeto = data["results"]["bindings"][i]["o"]["type"].ToString(); nombre.Add(nom); Debug.Log("Cuanto " + nombre.Count); //aqui //Guardar los datos en los strings strObjeto = nom.Objeto; strSujeto = nom.Sujeto; strPredicado = nom.Predicado; //texbox1.text = ("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); if (nom.Sujeto != " " && nom.TypeSujeto != " " && nom.Objeto != " ") { //se crea la esfera sujeto origin = Instantiate(sphere, vectorSujeto, Quaternion.identity); origin.GetComponent <MeshRenderer>().material = MaSujeto; //origin.name = "origen"+i; origin.tag = "esferas"; origin.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); var traza = origin.AddComponent <LineRenderer>(); traza.startWidth = traza.endWidth = 0.04f; traza.useWorldSpace = true; traza.positionCount = 2; //textSujeto.tag = ""; if (nom.TypeObjeto == "uri") { destino = Instantiate(sphere, new Vector3(Random.Range(-37.500f, -40.500f), Random.Range(32.119f, 31.062f), -71.213f), Quaternion.identity); destino.GetComponent <MeshRenderer>().material = MaObjeto; destino.tag = "esferas"; destino.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); palabraObjeto1 = ObtenerPrimeraPalabra(strObjeto, 28); Debug.Log("Primera palabra Objeto " + palabraObjeto1); palabraObjeto2 = ObtenerSegundaPalabra(strObjeto, 28); Debug.Log("Segunda palabra Objeto " + palabraObjeto2); } else { destino = Instantiate(cube, new Vector3(Random.Range(-37.500f, -40.500f), Random.Range(32.119f, 31.062f), -71.213f), Quaternion.identity); destino.GetComponent <MeshRenderer>().material = MaObjLiteral; destino.tag = "esferas"; destino.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); palabraObjeto1 = ObtenerPrimeraPalabra(strObjeto, 1); Debug.Log("Primera palabra Objeto " + palabraObjeto1); palabraObjeto2 = ObtenerSegundaPalabra(strObjeto, 1); Debug.Log("Segunda palabra Objeto " + palabraObjeto2); } traza.SetPosition(0, vectorSujeto); traza.SetPosition(1, destino.transform.position); //traza.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); traza.material = MaPredicado; //traza.endWidth = 4; //Debug.Log("Posicion del Objeto: " + i + " nombre objeto: " + strObjeto); //Para poner el texto de las esferas de objeto textGo.transform.position = destino.transform.position; //Para poner el texto de las esferas de objeto textSujeto.transform.position = origin.transform.position; textPredicado.transform.position = traza.GetPosition(1); TextMesh textMeshPredicado = textPredicado.AddComponent <TextMesh>(); TextMesh textMesh = textGo.AddComponent <TextMesh>(); TextMesh textMeshSujeto = textSujeto.AddComponent <TextMesh>(); //se optiene la nueva palabra palabraSujeto1 = ObtenerPrimeraPalabra(strSujeto, num); Debug.Log("Primera palabra Sujeto " + palabraSujeto1); palabraSujeto2 = ObtenerSegundaPalabra(strSujeto, num); Debug.Log("Segunda palabra Sujeto " + palabraSujeto2); palabraPredicado1 = ObtenerPrimeraPalabra(strPredicado, num); Debug.Log("Primera palabra predicado " + palabraPredicado1); palabraPredicado2 = ObtenerSegundaPalabra(strPredicado, num); Debug.Log("Segunda palabra Predicado " + palabraPredicado2); nuevoSujeto = UnirPalabras(palabraSujeto1, palabraSujeto2); Debug.Log("Nuevo Sujeto " + nuevoSujeto); nuevoPredicado = UnirPalabras(palabraPredicado1, palabraPredicado2); Debug.Log("Nuevo predicado " + nuevoPredicado); nuevoObjeto = UnirPalabras(palabraObjeto1, palabraObjeto2); Debug.Log("Nuevo Objeto " + nuevoObjeto); //-39.13 31.5 -72.4 //aqui cambio para comprobar si se envia el nuevo nombre textMesh.text = nuevoObjeto; //strObjeto; textMeshSujeto.text = resul; //strSujeto; //textMeshPredicado.text = nuevoPredicado; //muestra el texto obtenido de la consulta //textMesh.text = strObjeto; //textMeshSujeto.text = strSujeto; //textGo.Color = new Color(1, 0, 1, 0.5f); //violeta transparente al 50% 100%, 64.7%, 0%, 1 textMesh.color = new Color(0, 255, 0, 1); textMeshSujeto.color = new Color(100, 64.7f, 0, 1); textMeshPredicado.color = new Color(1, 0, 0, 1); //los tag sirven para eliminar el texto cuando le de al boton enter textGo.tag = "esferas"; textSujeto.tag = "esferas"; textPredicado.tag = "esferas"; textGo.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); textSujeto.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); textPredicado.transform.localScale = new Vector3(0.1395633f, 0.1395634f, 0.1395634f); } } }