public void SeleccionarDeporte(int indexDeporte_) { SetHerramientaActual(); Deportes.DeporteEnum _deporteActual = Deportes.DeporteEnum.Ninguno; switch (indexDeporte_) { case 0: _deporteActual = Deportes.DeporteEnum.Basket; break; case 1: _deporteActual = Deportes.DeporteEnum.Futbol; break; case 2: _deporteActual = Deportes.DeporteEnum.Handball; break; case 3: _deporteActual = Deportes.DeporteEnum.HockeyCesped; break; case 4: _deporteActual = Deportes.DeporteEnum.HockeyPatines; break; case 5: _deporteActual = Deportes.DeporteEnum.Padel; break; case 6: _deporteActual = Deportes.DeporteEnum.Rugby; break; case 7: _deporteActual = Deportes.DeporteEnum.Softball; break; case 8: _deporteActual = Deportes.DeporteEnum.Tenis; break; case 9: _deporteActual = Deportes.DeporteEnum.Voley; break; } panelEdicion.ChangeSport(_deporteActual); }
public void SelectOption(string opcionString) { switch (opcionEditandoActualmente) { case OpcionActual.idioma: _idioma = AppController.instance.GetLanguageEnumFromString(opcionString); AppController.instance.idioma = _idioma; idiomaActualText.text = opcionString; idiomaActualText.text = AppController.instance.GetDisplayNameIdioma(_idioma, _idioma).ToUpper(); temaActualText.text = AppController.instance.GetDisplayNameTema(_tema, _idioma).ToUpper(); deporteFavoritoActualText.text = Deportes.instance.GetDisplayName(_deporteFavorito, _idioma).ToUpper(); SaveSettings(); break; case OpcionActual.tema: _tema = AppController.instance.GetThemeEnumFromString(opcionString); temaActualText.text = opcionString; break; case OpcionActual.deporte: Debug.Log("DEPORTE CAMBIADO: " + opcionString); _deporteFavorito = Deportes.instance.GetSportEnumFromString(opcionString); deporteFavoritoActualText.text = opcionString; SaveSettings(); break; default: Debug.LogError("ESTO NO DEBERIA HABER PASADO"); break; } opcionEditandoActualmente = OpcionActual.ninguna; }
public void ChangeSport(Deportes.DeporteEnum _nuevoDeporte) { currentTextures.Clear(); currentTextures.Add(Deportes.instance.GetImagenCancha(_nuevoDeporte, Deportes.TipoCanchasEnum.CanchaEntera).texture); currentTextureIndex = 0; NextBackgroundImage(); }
public void SetSeccionCancha() { contorno.gameObject.SetActive(false); deporte = AppController.instance.equipoActual.GetDeporte(); imagenCancha.sprite = Deportes.instance.GetImagenCancha(deporte, Deportes.TipoCanchasEnum.CanchaEntera); }
public void SetSettings(SaveDataSettings _settings) { idioma = _settings.idioma; tema = _settings.tema; deporteFavorito = _settings.deporteFavorito; SetTemaActual(tema); //Debug.Log("IDIOMA: " + idioma); //Debug.Log("TEMA: " + tema); //Debug.Log("DEP FAV: " + deporteFavorito); //Debug.Log("EQU FAV: " + equipoFavorito); }
private void SetBotonesDeportes() { for (int i = 0; i < Deportes.instance.GetCantDeportes() - 1; i++) { Deportes.DeporteEnum dep = (Deportes.DeporteEnum)i; Button depGO = Instantiate(botonDeportePrefab, deportesParent, false); depGO.gameObject.SetActive(true); depGO.image.sprite = Deportes.instance.GetIconoDeporte((Deportes.DeporteEnum)dep); depGO.onClick.AddListener(delegate { CambiarDeporteElegido((Deportes.DeporteEnum)dep); }); depGO.onClick.AddListener(delegate { ActivarBoton(depGO); }); listaBotones.Add(depGO); } }
public Jugador(/*string nombre_, int peso_, int altura_, */ InfoJugador infoJugador_, Deportes.DeporteEnum deporte_) //Constructor por nombre { /*nombre = nombre_; * peso = peso_; * altura = altura_;*/ infoJugador = infoJugador_; deporte = deporte_; estadisticasGlobalesPartido = new Estadisticas(deporte_); estadisticasGlobalesPractica = new Estadisticas(deporte_); partidos = new List <Partido>(); practicas = new List <Partido>(); }
public override void Display(bool _isPartido) { isPartido = _isPartido; seleccionListaJugadores.SetearListaJugadores(); Deportes.DeporteEnum deporteActual = AppController.instance.equipoActual.GetDeporte(); switch (deporteActual) { //NORMAL CON PENALES case Deportes.DeporteEnum.Futbol: case Deportes.DeporteEnum.HockeyCesped: case Deportes.DeporteEnum.HockeyPatines: case Deportes.DeporteEnum.Handball: resultadoNormal.gameObject.SetActive(true); resultadoSets.gameObject.SetActive(false); resultadoNormal.ActivateEdition(); Debug.Log("NORMAL CON PENALES"); break; //NORMAL SIN PENALES case Deportes.DeporteEnum.Basket: case Deportes.DeporteEnum.Rugby: case Deportes.DeporteEnum.Softball: resultadoNormal.gameObject.SetActive(true); resultadoSets.gameObject.SetActive(false); resultadoNormal.ActivateEdition(false); //sin penales Debug.Log("NORMAL SIN PENALES"); break; //SETS CON TIEBREAK case Deportes.DeporteEnum.Padel: case Deportes.DeporteEnum.Tenis: case Deportes.DeporteEnum.Voley: resultadoNormal.gameObject.SetActive(false); resultadoSets.gameObject.SetActive(true); resultadoSets.ActivateEdition(); resultadoSets.AgregarSet(); Debug.Log("SETS CON TIEBREAK"); break; default: Debug.LogError("ERROR CON EL DEPORTE ACTUAL"); break; } relojEntradaDatos.Initiate(); GuardarComoPartido(); }
public Estadisticas(SaveDataEstadisticas saveData) { //A partir de saveData, extraer los dos arrays publicos //y crear el diccionario (listaEstadisticas) con ellos deporte = saveData.deporte; listaEstadisticas = new Dictionary <string, int>(); List <string> keys = saveData.nombresCategorias; List <int> values = saveData.valoresCategorias; for (int i = 0; i < keys.Count; i++) { listaEstadisticas[keys[i]] = values[i]; } }
public Equipo(string nombre_, Deportes.DeporteEnum deporte_) //Constructor por nombre { nombre = nombre_; deporte = deporte_; jugadorFavorito = null; jugadores = new List <Jugador>(); estadisticasGlobalesPartido = new Estadisticas(deporte); estadisticasGlobalesPractica = new Estadisticas(deporte); //planillasAsistencia = new Dictionary<string, List<DetalleAsistencia>>(); planillasAsistencia = new List <PlanillaAsistencia>(); partidos = new List <Partido>(); practicas = new List <Partido>(); }
public Equipo(SaveDataEquipo saveData)//{, SaveDataEstadisticas saveDataEstPartido, SaveDataEstadisticas saveDataEstPractica) { nombre = saveData.GetNombre(); deporte = saveData.GetDeporte(); /*estadisticasGlobalesPartido = new Estadisticas(saveDataEstPartido); * estadisticasGlobalesPractica = new Estadisticas(saveDataEstPractica);*/ estadisticasGlobalesPartido = new Estadisticas(deporte); estadisticasGlobalesPractica = new Estadisticas(deporte); jugadores = new List <Jugador>(); //planillasAsistencia = new Dictionary<string, List<DetalleAsistencia>>(); planillasAsistencia = new List <PlanillaAsistencia>(); partidos = new List <Partido>(); practicas = new List <Partido>(); }
public SaveDataEstadisticas(Estadisticas estadisticas_) { deporte = estadisticas_.GetDeporte(); estadisticas = estadisticas_.GetDictionary(); nombresCategorias = new List <string>(); valoresCategorias = new List <int>(); //Separar el diccionario en un array de strings (keys) y un array de int (values) List <string> keys = ListaKeys(estadisticas.Keys); List <int> values = ListaValues(estadisticas.Values); for (int i = 0; i < keys.Count; i++) { nombresCategorias.Add(keys[i]); valoresCategorias.Add(values[i]); } fecha = estadisticas_.GetFecha(); }
public void SetPanelConfiguracion() { CanvasController.instance.overlayPanel.SetNombrePanel("CONFIGURACION", AppController.Idiomas.Español); CanvasController.instance.overlayPanel.SetNombrePanel("SETTINGS", AppController.Idiomas.Ingles); CanvasController.instance.AgregarPanelAnterior(CanvasController.Paneles.MisEquipos); _idioma = AppController.instance.idioma; _deporteFavorito = AppController.instance.deporteFavorito; _tema = AppController.instance.tema; opcionEditandoActualmente = OpcionActual.ninguna; idiomaActualText.text = AppController.instance.GetDisplayNameIdioma(_idioma, _idioma); temaActualText.text = AppController.instance.GetDisplayNameTema(_tema, _idioma); deporteFavoritoActualText.text = Deportes.instance.GetDisplayName(_deporteFavorito, _idioma); // !!!!! DESCOMENTAR ESTO SI SE VUELVE A VERSION 1 !!!!! /*SetDropdownIdiomasOptions(); * SetDropdownTemasOptions(); * SetSeccionDeporteFavorito();*/ }
public SaveDataJugador(InfoJugador infoJugador_, Deportes.DeporteEnum deporte_) { deporte = deporte_; catObligatoria = ListaKeysString(infoJugador_.GetInfoObligatoria().Keys); valObligatoria = ListaValuesString(infoJugador_.GetInfoObligatoria().Values); catString = ListaKeysString(infoJugador_.GetInfoString().Keys); valString = ListaValuesString(infoJugador_.GetInfoString().Values); catInt = ListaKeysInt(infoJugador_.GetInfoInt().Keys); valInt = ListaValuesInt(infoJugador_.GetInfoInt().Values); catEspecial = ListaKeysString(infoJugador_.GetInfoEspecial().Keys); valEspecial = ListaValuesString(infoJugador_.GetInfoEspecial().Values); fechaNacYear = infoJugador_.GetFechaNac().Year; fechaNacMonth = infoJugador_.GetFechaNac().Month; fechaNacDay = infoJugador_.GetFechaNac().Day; pathImagenJugador = infoJugador_.pathImagenJugador; }
public static void SaveSettings(AppController.Idiomas _idioma, AppController.Temas _tema, Deportes.DeporteEnum _deporteFavorito) { BinaryFormatter formatter = new BinaryFormatter(); string pathConfiguracion = Application.persistentDataPath + "/" + carpetaPrincipal; Debug.Log("IDIOMA SA: " + _idioma); Debug.Log("TEMA SA: " + _tema); Debug.Log("DEP FAV SA: " + _deporteFavorito); FileStream streamSettings = new FileStream(pathConfiguracion + "settings.txt", FileMode.Create); SaveDataSettings dataSettings = new SaveDataSettings(_idioma, _tema, _deporteFavorito); formatter.Serialize(streamSettings, dataSettings); streamSettings.Close(); }
public void CambiarDeporteElegido(Deportes.DeporteEnum _deporte) { Debug.Log("DEPORTE: " + _deporte); deporteActual = _deporte; deporteActualText.text = Deportes.instance.GetDisplayName(_deporte, AppController.instance.idioma).ToUpper(); }
public SaveDataSettings(AppController.Idiomas _idioma, AppController.Temas _tema, Deportes.DeporteEnum _deporteFavorito) { idioma = _idioma; tema = _tema; deporteFavorito = _deporteFavorito; }
public void CambiarDeporteElegido() { deporteActual = (Deportes.DeporteEnum)dropdownDeportes.value; imagenDeporteActual.sprite = Deportes.instance.GetIconoDeporte(deporteActual); }
private void Start() { panelMisEquipos = GetComponentInParent <PanelMisEquipos>(); deporteActual = Deportes.DeporteEnum.Basket; imagenDeporteActual.sprite = Deportes.instance.GetIconoDeporte(deporteActual); }
public SaveDataEquipo(Equipo equipo) { nombreEquipo = equipo.GetNombre(); deporte = equipo.GetDeporte(); }
public Estadisticas(Deportes.DeporteEnum _deporte) { listaEstadisticas = new Dictionary <string, int>(); deporte = _deporte; }
override public void GuardarEntradaDatos() { string tipoEntradaDatos = isPartido ? "Partido" : "Practica"; Debug.Log("Guardando como: " + tipoEntradaDatos); mensajeErrorGuardado.gameObject.SetActive(true); string nombrePartido = nombrePartidoText.text.ToUpper(); Equipo equipo = AppController.instance.equipoActual; if (nombrePartido == "" || !AppController.instance.VerificarNombre(nombrePartido)) { mensajeErrorGuardado.SetText("Nombre inválido".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Invalid name".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); Debug.Log("Nombre inválido"); return; } else if (equipo.ContienePartido(tipoEntradaDatos, nombrePartido)) { mensajeErrorGuardado.SetText("Nombre existente".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Existing name".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); Debug.Log("Nombre existente"); return; } Deportes.DeporteEnum deporteActual = equipo.GetDeporte(); Estadisticas estEquipo = new Estadisticas(deporteActual); DateTime fecha = DateTime.Now; int cantPeriodos = relojEntradaDatos.GetCurrentPeriod(); Partido _partido = new Partido(nombrePartido, estEquipo, fecha, isPartido, cantPeriodos); List <Evento> _eventos = seccionEstadisticas.GetListaEventos(); _partido.SetListaEventos(_eventos); if (deporteActual == Deportes.DeporteEnum.Softball || deporteActual == Deportes.DeporteEnum.Futbol || deporteActual == Deportes.DeporteEnum.Basket || deporteActual == Deportes.DeporteEnum.HockeyCesped || deporteActual == Deportes.DeporteEnum.HockeyPatines || deporteActual == Deportes.DeporteEnum.Rugby || deporteActual == Deportes.DeporteEnum.Handball) { if (insertarResultado && !resultadoNormal.VerificarInputs()) { mensajeErrorGuardado.SetText("Completar campos de resultado".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Complete results fields".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); return; } resultadoNormal.SetResultado(); Debug.Log("RES: " + resultadoNormal.GetResultado()); Debug.Log("PROP: " + resultadoNormal.GetResultadoPropio()); Debug.Log("CONT: " + resultadoNormal.GetResultadoContrario()); Debug.Log("PEN PROP: " + resultadoNormal.GetResultadoPenalesPropio()); Debug.Log("PEN CONT: " + resultadoNormal.GetResultadoPenalesContrario()); _partido.AgregarResultadoEntradaDatos(resultadoNormal, Partido.TipoResultadoPartido.Normal); seccionBanca.GuardarEntradaDato(listaNombres, nombrePartido, tipoEntradaDatos, fecha, resultadoNormal, _eventos, Partido.TipoResultadoPartido.Normal, cantPeriodos); } else { if (insertarResultado && !resultadoSets.VerificarInputs()) { mensajeErrorGuardado.SetText("Completar campos de resultado".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Complete results fields".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); return; } resultadoSets.SetResultado(); _partido.AgregarResultadoEntradaDatos(resultadoSets, Partido.TipoResultadoPartido.Sets); seccionBanca.GuardarEntradaDato(listaNombres, nombrePartido, tipoEntradaDatos, fecha, resultadoSets, _eventos, Partido.TipoResultadoPartido.Sets, cantPeriodos); } //PARA LOS JUGADORES seccionBanca.SetFechaEntradaDato(fecha); //para cada jugadorEntradaDato, estadistica.setfecha(fecha) //PARA EL EQUIPO estEquipo.SetFecha(fecha); seccionBanca.AgregarEstadisticasEquipo(estEquipo); equipo.GuardarEntradaDato(tipoEntradaDatos, estEquipo, _partido); //CanvasController.instance.escenas.Add(1); CanvasController.instance.retrocesoPausado = false; CanvasController.instance.MostrarPanelAnterior(); CanvasController.instance.overlayPanel.gameObject.SetActive(true); CanvasController.instance.botonDespliegueMenu.SetActive(true); Screen.orientation = ScreenOrientation.Portrait; Destroy(gameObject); }
public void CambiarDeporteElegido(Deportes.DeporteEnum _deporte) { deporteActual = _deporte; nombreDeporteElegido.text = Deportes.instance.GetDisplayName(_deporte, AppController.instance.idioma); }
override public void GuardarEntradaDatos() { string tipoEntradaDatos = isPartido ? "Partido" : "Practica"; Debug.Log("Guardando como: " + tipoEntradaDatos); mensajeErrorGuardado.gameObject.SetActive(true); string nombrePatido = nombrePartidoText.text.ToUpper(); if (nombrePatido == "") { mensajeErrorGuardado.SetText("Nombre inválido!".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Invalid name!".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); Debug.Log("Nombre inválido"); return; } else if (equipo.ContienePartido(tipoEntradaDatos, nombrePatido)) { mensajeErrorGuardado.SetText("Nombre existente!".ToUpper(), AppController.Idiomas.Español); mensajeErrorGuardado.SetText("Existing name!".ToUpper(), AppController.Idiomas.Ingles); mensajeErrorGuardado.Activar(); Debug.Log("Nombre existente"); return; } Deportes.DeporteEnum deporteActual = equipo.GetDeporte(); Estadisticas estEquipo = new Estadisticas(deporteActual); DateTime fecha = DateTime.Now; Debug.Log("Fehca guardada: " + fecha.ToString()); for (int i = 0; i < jugadores.Count; i++) { Estadisticas estadistica = new Estadisticas(deporteActual); for (int j = 0; j < listaEstadisticas.Count; j++) { Button[] botones = columnas[j + 1].GetComponentsInChildren <Button>(); estadistica.AgregarEstadisticas(listaEstadisticas[j].ToUpper(), botones[i].GetComponent <BotonEntradaDato>().GetCantidad()); } estadistica.SetFecha(fecha); estEquipo.SetFecha(fecha); Debug.Log("Estadsitica - cant : " + estadistica.GetCantidadCategorias()); estEquipo.AgregarEstadisticas(estadistica); //jugadores[i].SetEstadisticas(estadistica, tipoEntradaDatos); //jugadores[i].AgregarPartido(new Partido(nombrePartidoText.text, estadistica), tipoEntradaDatos); //jugadores[i].GuardarEntradaDato(tipoEntradaDatos, estadistica, new Partido(nombrePatido, estadistica, fecha)); } //equipo.SetEstadisticas(estEquipo, tipoEntradaDatos); //equipo.AgregarPartido(new Partido(nombrePartidoText.text, estEquipo), tipoEntradaDatos); //equipo.GuardarEntradaDato(tipoEntradaDatos, estEquipo, new Partido(nombrePatido, estEquipo, fecha, isPartido)); Debug.Log("Entrada guardado como: " + tipoEntradaDatos); //CanvasController.instance.escenas.Add(1); CanvasController.instance.retrocesoPausado = false; CanvasController.instance.MostrarPanelAnterior(); CanvasController.instance.overlayPanel.gameObject.SetActive(true); CanvasController.instance.botonDespliegueMenu.SetActive(true); Screen.orientation = ScreenOrientation.Portrait; Destroy(gameObject); }
public void SetPanelEstadisticasGlobalesEquipo(Partido _partido, bool fromGrafica = false) { botonVerResultado.SetActive(true); partidoFocus = _partido; ResultadoEntradaDatos.Resultado _tipoResultado; coloresBotones.Clear(); coloresBotones.Add(AppController.instance.colorTheme.detalle5); coloresBotones.Add(AppController.instance.colorTheme.detalle3); Deportes.DeporteEnum deporteActual = AppController.instance.equipoActual.GetDeporte(); switch (deporteActual) { //NORMAL CON PENALES case Deportes.DeporteEnum.Futbol: case Deportes.DeporteEnum.HockeyCesped: case Deportes.DeporteEnum.HockeyPatines: case Deportes.DeporteEnum.Handball: resultadoSets.gameObject.SetActive(false); resultadoNormal.gameObject.SetActive(true); ResultadoNormal _res = (ResultadoNormal)partidoFocus.GetResultadoEntradaDato(); Debug.Log(_res == null); resultadoNormal.CopyDataFrom(_res); resultadoNormal.DisableEdition(); _tipoResultado = resultadoNormal.GetResultado(); Debug.Log("NORMAL CON PENALES"); break; //NORMAL SIN PENALES case Deportes.DeporteEnum.Basket: case Deportes.DeporteEnum.Rugby: case Deportes.DeporteEnum.Softball: resultadoSets.gameObject.SetActive(false); resultadoNormal.gameObject.SetActive(true); ResultadoNormal _resNorm = (ResultadoNormal)partidoFocus.GetResultadoEntradaDato(); resultadoNormal.CopyDataFrom(_resNorm); resultadoNormal.DisableEdition(false); _tipoResultado = resultadoNormal.GetResultado(); Debug.Log("NORMAL SIN PENALES"); break; //SETS CON TIEBREAK case Deportes.DeporteEnum.Padel: case Deportes.DeporteEnum.Tenis: case Deportes.DeporteEnum.Voley: resultadoSets.gameObject.SetActive(true); resultadoNormal.gameObject.SetActive(false); ResultadoSets _resSets = (ResultadoSets)partidoFocus.GetResultadoEntradaDato(); List <SetPrefab> _lista = _resSets.GetListaSets(); resultadoSets.BorrarPrefabs(); foreach (var set in _lista) { resultadoSets.AgregarSet(set); } resultadoSets.DisableEdition(); _tipoResultado = resultadoSets.GetResultado(); Debug.Log("SETS CON TIEBREAK"); break; default: Debug.LogError("ERROR CON EL DEPORTE ACTUAL"); _tipoResultado = ResultadoEntradaDatos.Resultado.Derrota; break; } /*if (partidoFocus.GetTipoResultadoPartido() == Partido.TipoResultadoPartido.Normal) * { * resultadoSets.gameObject.SetActive(false); * resultadoNormal.gameObject.SetActive(true); * * ResultadoNormal _res = (ResultadoNormal)partidoFocus.GetResultadoEntradaDato(); * Debug.Log(_res == null); * resultadoNormal.CopyDataFrom(_res); * resultadoNormal.DisableEdition(); * _tipoResultado = resultadoNormal.GetResultado(); * } * else * { * resultadoSets.gameObject.SetActive(true); * resultadoNormal.gameObject.SetActive(false); * * ResultadoSets _res = (ResultadoSets)partidoFocus.GetResultadoEntradaDato(); * List<SetPrefab> _lista = _res.GetListaSets(); * * resultadoSets.BorrarPrefabs(); * foreach (var set in _lista) * { * resultadoSets.AgregarSet(set); * } * resultadoSets.DisableEdition(); * _tipoResultado = resultadoSets.GetResultado(); * }*/ if (_tipoResultado == ResultadoEntradaDatos.Resultado.Victoria) { resultadoText.SetText("Victoria", AppController.Idiomas.Español); resultadoText.SetText("Victory", AppController.Idiomas.Ingles); } else if (_tipoResultado == ResultadoEntradaDatos.Resultado.Derrota) { resultadoText.SetText("Derrota", AppController.Idiomas.Español); resultadoText.SetText("Loss", AppController.Idiomas.Ingles); } else { resultadoText.SetText("Empate", AppController.Idiomas.Español); resultadoText.SetText("Tie", AppController.Idiomas.Ingles); } CanvasController.instance.overlayPanel.SetNombrePanel("PARTIDO: " + _partido.GetNombre(), AppController.Idiomas.Español); CanvasController.instance.overlayPanel.SetNombrePanel("MATCH: " + _partido.GetNombre(), AppController.Idiomas.Ingles); seccionResultado.SetActive(true); botonBorrar.SetActive(true); Screen.orientation = ScreenOrientation.Portrait; if (!fromGrafica) { CanvasController.instance.AgregarPanelAnterior(CanvasController.Paneles.EstadisticasGlobalesEquipo); } if (listaPrefabsTextos == null) { listaPrefabsTextos = new List <GameObject>(); } estadisticas = _partido.GetEstadisticas(); parentTransform = estadisticasGlobales.SetPanelEstadisticas(); BorrarPrefabs(); CrearPrefabs(); }
private void Start() { panelMisEquipos = GetComponentInParent <PanelMisEquipos>(); deporteActual = Deportes.DeporteEnum.Basket; nombreDeporteElegido.text = Deportes.instance.GetDisplayName(deporteActual, AppController.instance.idioma); }