public float jumpForce; //Fuerza del salto; // Use this for initialization void Start() { /* Recogemos el script de control de animaciones*/ player = GameObject.FindWithTag("Player"); animaciones = player.GetComponent <Animaciones>(); muerto = false; }
private void ModificarArtículo() { if (lstArtículos.SelectedItem == null) { MessageBox.Show("Debe seleccionar un artículo de la lista"); } else { var artículo = lstArtículos.SelectedItem as Artículo; txtNombre.Text = artículo.Nombre; txtMontoPréstamo.AsInt = artículo.Costo; cmbCategorías.SelectedValue = artículo.Código_Categoría; cmbCategorías_SelectionChanged(cmbCategorías, null); foreach (Artículos_Característica car in artículo.Artículos_Características) { var caract = gridCaracterísticas.Items.OfType <CaracterísticaValor>().SingleOrDefault(c => c.CódigoCaracterística == car.Código_Característica); if (caract != null) { caract.Valor = car.Valor.ToString(); } } txtNotas.Text = artículo.Notas; Animaciones.DeslizarElementos(this, pnlListaArtículos, pnlDetalleArtículo); txtNombre.Focus(); modificandoArtículo = true; } }
private void NuevoArtículo() { LimpiarArtículo(); Animaciones.DeslizarElementos(this, pnlListaArtículos, pnlDetalleArtículo); txtNombre.Focus(); modificandoArtículo = false; }
// Use this for initialization void Awake() { reloj = GameObject.Find("RelojMenu").GetComponent <Animaciones>(); sumatoria = GameObject.Find("SumatoriaMenu").GetComponent <Animaciones>(); conversor = GameObject.Find("ConversorMenu").GetComponent <Animaciones>(); ajustes = GameObject.Find("AjustesMenu").GetComponent <Animaciones>(); ads = GameObject.Find("ADSMenu").GetComponent <Animaciones>(); }
// Start is called before the first frame update void Start() { this.velocidadMovimiento = 0.25f; dragDistance = Screen.height * 15 / 100; //dragDistance is 15% height of the screen textoDebugger.text = "Started"; this.animacionesController = this.GetComponent <Animaciones>(); }
public void Start() { if (Screen.orientation == ScreenOrientation.LandscapeLeft) { Screen.orientation = ScreenOrientation.Portrait; } crearJuego = false; animacionesModo = GameObject.Find("Modos").GetComponentInChildren <Modos>(); animacionesVariantes = GameObject.Find("Variantes").GetComponentInChildren <Animaciones>(); new Dialogos().Menu(); animacionesModo.Aparicion(); }
private bool GuardarArtículo() { if (ValidarArtículo()) { Artículo artículo = null; if (modificandoArtículo && lstArtículos.SelectedItem != null) { artículo = lstArtículos.SelectedItem as Artículo; } else { artículo = new Artículo { Estado = 1 } }; artículo.Nombre = txtNombre.Text; artículo.Costo = txtMontoCompra.AsInt; artículo.Código_Categoría = (int?)cmbCategorías.SelectedValue; artículo.Artículos_Características.Clear(); foreach (CaracterísticaValor car in gridCaracterísticas.Items) { artículo.Artículos_Características.Add(new Artículos_Característica { Código_Característica = car.CódigoCaracterística, Valor = car.Valor }); } artículo.Notas = txtNotas.Text; if (!modificandoArtículo) { lstArtículos.Items.Add(artículo); lstArtículos.SelectedItem = artículo; } else { lstArtículos.Items.Refresh(); } ActualizarTotalCostoCompra(); Animaciones.DeslizarElementos(this, pnlListaArtículos, pnlDetalleArtículo); return(true); } return(false); }
private void btnCancelarArtículo_Click(object sender, RoutedEventArgs e) { LimpiarArtículo(); Animaciones.DeslizarElementos(this, pnlListaArtículos, pnlDetalleArtículo); }