public ActionResult saveacademia(string academiatxt) { texto academia = db.texto.Where(p => p.id == academiaID).FirstOrDefault(); academia.descrição = academiatxt; db.SaveChanges(); return(RedirectToAction("Index", "dashboard")); }
public ActionResult savecontactos(string contactostxt) { texto contactos = db.texto.Where(p => p.id == contactosID).FirstOrDefault(); contactos.descrição = contactostxt; db.SaveChanges(); return(RedirectToAction("Index", "dashboard")); }
public ActionResult savequemsomos(string quemsomostxt) { texto quemSomos = db.texto.Where(p => p.id == quemSomosID).FirstOrDefault(); quemSomos.descrição = quemsomostxt; db.SaveChanges(); return(RedirectToAction("Index", "dashboard")); }
void OnTriggerEnter(Collider otro) { //Debug.Log ("misil choca"); if (otro.gameObject.tag == "terreno") { GameObject gmoExplosion = Instantiate(insExplosion, transform.position, transform.rotation) as GameObject; GameObject gmoFire = Instantiate(insFire, transform.position, transform.rotation) as GameObject; //gmoFire.SetActiveRecursively(false); Destroy(gmoExplosion, 2); Destroy(gmoFire, 120); Destroy(this.gameObject); AudioSource.PlayClipAtPoint(explota, transform.position); } //Debug.Log (otro.gameObject.tag); if (otro.gameObject.tag == "piedra") { GameObject gmoExplosion = Instantiate(insExplosionC, otro.transform.position, otro.transform.rotation) as GameObject; GameObject gmoFire = Instantiate(insFireC, otro.transform.position, otro.transform.rotation) as GameObject; gmoExplosion.transform.parent = otro.gameObject.transform; gmoFire.transform.parent = otro.gameObject.transform; gmoFire.transform.localScale = otro.gameObject.transform.localScale; gmoExplosion.transform.localScale = otro.gameObject.transform.localScale; //Destroy (otro.gameObject,5); Destroy(this.gameObject); GameObject piedraObj = GameObject.Find(otro.gameObject.name); piedraChoca script0 = piedraObj.GetComponent <piedraChoca>(); if (script0.alcanzado == 0) { GameObject objeto = GameObject.Find("Conjunto"); texto script = objeto.GetComponent <texto>(); script.puntos++; script0.alcanzado = 1; } GameObject.Find("Conjunto").GetComponent <texto>().depurar( "\n-Misil " + this.gameObject.name + " impacta asteroide " + otro.gameObject.name + " xyz: " + this.transform.position.x + "," + this.transform.position.y + "," + this.transform.position.z); //t=t + "\nMisil ";//"+this.GetInstanceID+" impacta asteroide "+otro.gameObject.GetInstanceID; //Debug.Log(GameObject.Find("Conjunto").GetComponent<texto>().textoDebug); } }
public ActionResult Index() { if (Session["login"] != null) { texto quemSomos = db.texto.Where(p => p.id == quemSomosID).FirstOrDefault(); ViewBag.quemSomosTxt = quemSomos.descrição; texto academia = db.texto.Where(p => p.id == academiaID).FirstOrDefault(); ViewBag.academiatxt = academia.descrição; texto contactos = db.texto.Where(p => p.id == contactosID).FirstOrDefault(); ViewBag.contactos = contactos.descrição; dashboardModel model = new dashboardModel(); model.eventosList = getEventosList(); model.cursosList = getCursosList(); return(View("/Views/dashboard/dashboard.cshtml", model)); } else { return(RedirectToAction("Index", "Login")); } }
public string getcontactostxt() { texto contactos = db.texto.Where(p => p.id == contactosID).FirstOrDefault(); return(contactos.descrição); }
public string GetText(texto t) { return(languages[(int)currentLang].textos[(int)t]); }
public string getacademiatxt() { texto academia = db.texto.Where(p => p.id == academiaID).FirstOrDefault(); return(academia.descrição); }
public string getQuemSomosTxt() { texto quemSomos = db.texto.Where(p => p.id == quemSomosID).FirstOrDefault(); return(quemSomos.descrição); }