private void button1_Click(object sender, EventArgs e) { Mapa mapa = cuenta.juego.mapa; if (mapa.monstruos.Count > 0) { Celda celda_actual = cuenta.juego.personaje.celda, celda_monstruo_destino = mapa.monstruos.Values.ElementAt(0).celda; if (celda_actual.id != celda_monstruo_destino.id & celda_monstruo_destino.id != -1) { cuenta.logger.log_informacion("UI_PELEAS", "Monstruo encontrado en la casilla " + celda_monstruo_destino.id); switch (cuenta.juego.manejador.movimientos.get_Mover_A_Celda(celda_monstruo_destino, new List <Celda>())) { case ResultadoMovimientos.EXITO: cuenta.logger.log_informacion("UI_PELEAS", "Desplazando para comenzar el combate"); break; case ResultadoMovimientos.MISMA_CELDA: case ResultadoMovimientos.FALLO: case ResultadoMovimientos.PATHFINDING_ERROR: cuenta.logger.log_Error("UI_PELEAS", "El monstruo no esta en la casilla selecciona"); break; } } } else { cuenta.logger.log_Error("PELEAS", "No hay monstruos disponibles en el mapa"); } }
private void UpdateWebBrowser(List <SUBEPuntoModel> l) { ViewModel.Puntos.Clear(); var i = 1; foreach (var it in l) { var item = new ItemViewModel { Index = i, Punto = new GeoCoordinate(it.Latitud, it.Longitud), Titulo = it.Nombre, }; _pointsLayer.Add(GetMapOverlay(i.ToString(CultureInfo.InvariantCulture), item.Punto)); ViewModel.Puntos.Add(item); i++; } Mapa.SetView(Mapa.CreateBoundingRectangle()); ResetUI(); if (ViewModel.Puntos.Count == 0) { NoResults.Visibility = Visibility.Visible; } }
internal override Task <ResultadosAcciones> proceso(Cuenta cuenta) { Mapa mapa = cuenta.juego.mapa; List <Monstruos> grupos_disponibles = mapa.get_Grupo_Monstruos(monstruos_minimos, monstruos_maximos, monstruo_nivel_minimo, monstruo_nivel_maximo, monstruos_prohibidos, monstruos_obligatorios); if (grupos_disponibles.Count > 0) { foreach (Monstruos grupo_monstruo in grupos_disponibles) { var test = cuenta.juego.manejador.movimientos.get_Mover_A_Celda(grupo_monstruo.celda, new List <Celda>()); switch (test) { case ResultadoMovimientos.EXITO: cuenta.logger.log_informacion("SCRIPT", $"Mouvent vers un groupes à la cellule : {grupo_monstruo.celda.id}, monstres total: {grupo_monstruo.get_Total_Monstruos}, niveaux du groupe: {grupo_monstruo.get_Total_Nivel_Grupo}"); return(resultado_procesado); case ResultadoMovimientos.PATHFINDING_ERROR: case ResultadoMovimientos.MISMA_CELDA: cuenta.logger.log_Peligro("SCRIPT", "Le chemin vers le groupe de monstres est bloqué."); continue; default: cuenta.script.detener_Script("C'est trompé de groupes" + test); return(resultado_fallado); } } } return(resultado_hecho); }
void Start() { buildingObjects = GetComponent <Building>().buildings; centroDoPlaneta = GameObject.FindGameObjectWithTag("Planeta").transform; jm = JobManager.instance; mapa = Mapa.instance; }
private static void AddValuesSliderToMap(Mapa m) { m.ValueSliderForest = DataGame.ValueSliderForest; m.ValueSliderNaturalDisasters = DataGame.ValueSliderNaturalDisasters; m.ValueSliderRompibleObject = DataGame.ValueSliderRompibleObject; m.ValueSliderWater = DataGame.ValueSliderWater; }
// Token: 0x0600018C RID: 396 RVA: 0x00007240 File Offset: 0x00005640 internal override Task <ResultadosAcciones> proceso(Cuenta cuenta) { Mapa mapa = cuenta.juego.mapa; Celda celda = mapa.get_Celda_Id(this.celda_id); bool flag = celda == null; Task <ResultadosAcciones> result; if (flag) { result = AccionesScript.resultado_fallado; } else { ResultadoMovimientos resultadoMovimientos = cuenta.juego.manejador.movimientos.get_Mover_A_Celda(celda, cuenta.juego.mapa.celdas_ocupadas(), false, 0); ResultadoMovimientos resultadoMovimientos2 = resultadoMovimientos; if (resultadoMovimientos2 != ResultadoMovimientos.EXITO) { if (resultadoMovimientos2 != ResultadoMovimientos.MISMA_CELDA) { result = AccionesScript.resultado_fallado; } else { result = AccionesScript.resultado_hecho; } } else { result = AccionesScript.resultado_procesado; } } return(result); }
public MenuDetail() { InitializeComponent(); if (IsLocationAvailable() && IsGeoLocationEnabled()) { GetLocation(); } Mapa.MoveToRegion(MapSpan.FromCenterAndRadius( //new Position(-23.73815, -46.58407), _position, Distance.FromMiles(0.2))); var pin = new Pin { Type = PinType.Place, //Position = new Position(-23.73815, -46.58407), Position = _position, Label = string.Format("{0}, {1}", _position.Latitude.ToString(), _position.Longitude.ToString()), Address = "unknown", }; Mapa.Pins.Add(pin); }
public void get_Combate_Celdas_Posicion(ClienteTcp cliente, string paquete) { Cuenta cuenta = cliente.cuenta; Mapa mapa = cuenta.juego.mapa; string[] _loc3 = paquete.Substring(2).Split('|'); for (int a = 0; a < _loc3[0].Length; a += 2) { cuenta.juego.pelea.celdas_preparacion.Add(mapa.get_Celda_Id((short)((Hash.get_Hash(_loc3[0][a]) << 6) + Hash.get_Hash(_loc3[0][a + 1])))); } if (cuenta.pelea_extension.configuracion.desactivar_espectador) { cliente.enviar_Paquete("fS"); } if (cuenta.puede_utilizar_dragopavo) { if (cuenta.pelea_extension.configuracion.utilizar_dragopavo && !cuenta.juego.personaje.esta_utilizando_dragopavo) { cliente.enviar_Paquete("Rr"); cuenta.juego.personaje.esta_utilizando_dragopavo = true; } } }
private void ExpansionConDiagonales(Baldosa actual) { for (var i = -1; i <= 1; i++) { if (actual.Posicion.X + i >= 0 && actual.Posicion.X + i < Mapa.GetLength(0)) { for (var j = -1; j <= 1; j++) { if (actual.Posicion.Y + j >= 0 && actual.Posicion.Y + j < Mapa.GetLength(1)) { if (Mapa[actual.Posicion.X + i, actual.Posicion.Y + j].Accesible) { if (!(Mapa[actual.Posicion.X + i, actual.Posicion.Y + j].Valor == (float)TiposBaldosa.Rio && !Nadar)) { if (!(Mapa[actual.Posicion.X + i, actual.Posicion.Y + j].Valor == (float)TiposBaldosa.Montaña && !Escalar)) { CostesYTratarNodos(actual, i, j); } } } } } } } }
private void AddBookmark_Click(object sender, RoutedEventArgs e) { Mapa m = (Mapa)treeview_bookmarks.SelectedItem; Bookmark bk = new Bookmark(); if (m != null) { try { string temphost = newBookmarkURL.Text; if (!(temphost.StartsWith("http") || temphost.StartsWith("https"))) { temphost = "http://" + temphost; } Uri temp = new Uri(temphost); bk.Address = Convert.ToString(temp); bk.Title = Convert.ToString(temp.Host); bk.Icon = getimage(temp.Host); bk.Time = DateTime.Now; UserAppControlController.Controller.mapa_list[0].Bookmarks.Add(bk); } catch (Exception x) { MessageBox.Show("Error adding bookmark: " + x.Message); } } }
public MapaView() { InitializeComponent(); Mapa.MoveToRegion(MapSpan.FromCenterAndRadius( new Position(-21.166805, -50.466707), Distance.FromMeters(5000))); Mapa.MoveToRegion(MapSpan.FromCenterAndRadius( new Position(-21.147599, -50.503268), Distance.FromMeters(5000))); var pin1 = new Pin { Type = PinType.Place, Position = new Position(-21.166805, -50.466707), Label = "CBR Comércio de PP e PE" }; var pin2 = new Pin { Type = PinType.Place, Position = new Position(-21.147599, -50.503268), Label = "WS Recicle Plásticos" }; Mapa.Pins.Add(pin1); Mapa.Pins.Add(pin2); }
/// <summary> /// Devuelve 1 si se ha realizado con exito y 0 si se ha fallado. /// </summary> /// <param name="puntuacion"></param> /// <returns></returns> public async Task <int> crearMapaDAL(Mapa mapa) { clsConnection miConexion = new clsConnection(); int resultado = 0; HttpClient client = new HttpClient(); String body; HttpStringContent mContenido; HttpResponseMessage mRespuesta; try { // Serializamos al objeto persona que recibe body = JsonConvert.SerializeObject(mapa); mContenido = new HttpStringContent(body, Windows.Storage.Streams.UnicodeEncoding.Utf8, "application/json"); Uri uri = new Uri(miConexion.uriBase + "/Mapa"); mRespuesta = await client.PostAsync(uri, mContenido); if (mRespuesta.IsSuccessStatusCode) { resultado = 1; } } catch (Exception e) { throw e; } return(resultado); }
public HollywoodPage() { InitializeComponent(); PickerLugares.Items.Add("Hollywood"); PickerLugares.Items.Add("Costa Rica"); PickerLugares.SelectedIndex = 0; PickerLugares.SelectedIndexChanged += (s, e) => { var posicion = _posiciones[PickerLugares.SelectedIndex]; var mapSpan = MapSpan.FromCenterAndRadius(posicion, Distance.FromMiles(1)); Mapa.MoveToRegion(mapSpan); }; ButtonUbicacion.Command = new Command(async() => { var location = await Xamarin.Essentials.Geolocation.GetLocationAsync(); var mapSpan = MapSpan.FromCenterAndRadius(new Position(location.Latitude, location.Longitude), Distance.FromMiles(0.5)); Mapa.MoveToRegion(mapSpan); }); }
//void Search_Bar_PlacesRetrieved(object sender, AutoCompleteResult result) //{ // results_list.ItemsSource = result.AutoCompletePlaces; // spinner.IsRunning = false; // spinner.IsVisible = false; // if (result.AutoCompletePlaces != null && result.AutoCompletePlaces.Count > 0) // { // ListContainer.IsVisible = true; // results_list.IsVisible = true; // } // else // { // ListContainer.IsVisible = false; // results_list.IsVisible = false; // } //} //void Search_Bar_TextChanged(object sender, TextChangedEventArgs e) //{ // if (!string.IsNullOrEmpty(e.NewTextValue)) // { // results_list.IsVisible = false; // ListContainer.IsVisible = false; // spinner.IsVisible = true; // spinner.IsRunning = true; // } // else // { // ListContainer.IsVisible = true; // results_list.IsVisible = true; // spinner.IsRunning = false; // spinner.IsVisible = false; // if (e.NewTextValue == "") // { // ListContainer.IsVisible = false; // results_list.IsVisible = false; // } // } //} //async void Results_List_ItemSelected(object sender, SelectedItemChangedEventArgs e) //{ // if (e.SelectedItem == null) // return; // var prediction = (AutoCompletePrediction)e.SelectedItem; // results_list.SelectedItem = null; // var place = await Places.GetPlace(prediction.Place_ID, GooglePlacesApiKey); // if (place != null) // { // //search_bar.Text = null; // //// await DisplayAlert( place.Name, string.Format("Lat: {0}\nLon: {1}", place.Latitude, place.Longitude), "OK"); // //search_bar.Placeholder = place.Name; // ListContainer.IsVisible = false; // var posicion = new Position(latitude:place.Latitude,longitude:place.Longitude) ; // await MoveTo(posicion); // } //} #endregion //private async void FinDirections_Completed(object sender, EventArgs e) //{ // var text = ((Entry)sender).Text; //cast sender to access the properties of the Entry // var position = (await(new Geocoder()).GetPositionsForAddressAsync(text)).FirstOrDefault(); // await Task.Delay(3000); // Mapa.MoveToRegion(MapSpan.FromCenterAndRadius((position), Distance.FromMiles(.3))); // await Task.Delay(3000); // Mapa.MoveToMapRegion((MapSpan.FromCenterAndRadius(position, Distance.FromMiles(.3))), true); //} private async Task MoveTo(Position posicion) { //await Task.Delay(3000); Mapa.MoveToRegion(MapSpan.FromCenterAndRadius((posicion), Distance.FromMiles(.3))); // await Task.Delay(3000); Mapa.MoveToMapRegion((MapSpan.FromCenterAndRadius(posicion, Distance.FromMiles(.3))), true); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. locationManager.RequestWhenInUseAuthorization(); Mapa.ShowsUserLocation = true; Segmento.ValueChanged += (object sender, EventArgs e) => { switch (Segmento.SelectedSegment) { case 0: Mapa.MapType = MKMapType.Standard; break; case 1: Mapa.MapType = MKMapType.Satellite; break; case 2: Mapa.MapType = MKMapType.Hybrid; break; default: break; } }; Mapa.AddAnnotation(new MKPointAnnotation() { Title = "Anotacion", Coordinate = new CLLocationCoordinate2D(21.1665143, -101.71766129999999) }); }
// Use this for initialization protected void Start() { pasos = 0; status = Agent_Status.SLEEPING; cuchilloFound = false; fiambreFound = false; casoResuelto = false; mapa = GameManager.instance.mapa; infoMapa = new TILE_INFO[mapa.altoMapa, mapa.anchoMapa]; frontera = new List <Vector2Int>(); posCasa = new Vector2Int(0, 0); for (int i = 0; i < mapa.altoMapa; i++) { for (int j = 0; j < mapa.anchoMapa; j++) { TILE_INFO aux; aux.probCuerpo = aux.probPrecipicio = 0; aux._Contenido = Tile.T_Contenido.C_DESCONOCIDO; aux._Terreno = Tile.T_Terreno.T_DESCONOCIDO; aux.frontera = false; aux.noPrecipicio = false; aux.noCuerpo = false; infoMapa [i, j] = aux; } } Color color = new Color(Random.Range(.0f, 1.0f), Random.Range(.0f, 1.0f), Random.Range(.0f, 1.0f)); GetComponent <SpriteRenderer>().color = color; updatePos(); mapa.getTile(pos.y, pos.x).SetDescubierta(true); }
private void cargarMapa(int idMapa) { Mapa mapa = MapaDao.obtenerMapaByID(idMapa); txt_Latitud.Text = mapa.latitud; txt_Longitud.Text = mapa.longitud; }
protected void btn_Agregar_Click(object sender, EventArgs e) { Mapa m = new Mapa(); if (string.IsNullOrEmpty(txt_Latitud.Text) || string.IsNullOrEmpty(txt_Longitud.Text)) { m.latitud = "-31.416563"; m.longitud = "-64.183533"; } else { m.latitud = txt_Latitud.Text; m.longitud = txt_Longitud.Text; } int idMapa = MapaDao.insertarMapa(m); ComplejoDeportivo cd = new ComplejoDeportivo(); cd.id = int.Parse(Session["IDCom"].ToString()); cd.mapa = idMapa; ComplejoDeportivoDao.ActualizarMapaComplejo(cd); limpiarCampos(); cargarMapa(int.Parse(Session["IDCom"].ToString())); }
public virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (inventario != null) { inventario.Dispose(); } if (mapa != null) { mapa.Dispose(); } } if (hechizos != null) { hechizos.Clear(); } mapa = null; hechizos = null; caracteristicas = null; nombre_personaje = null; inventario = null; disposed = true; } }
private void mapa_Control_Celda_Clic(CeldaMapa celda, MouseButtons botones) { Mapa mapa = cuenta.juego.mapa; Celda celda_actual = cuenta.juego.personaje.celda, celda_destino = mapa.celdas[celda.id]; if (botones == MouseButtons.Left && celda_actual.id != 0 && celda_destino.id != 0) { ResultadoMovimientos resultado = cuenta.juego.manejador.movimientos.get_Mover_A_Celda(celda_destino, mapa.celdas_ocupadas); switch (resultado) { case ResultadoMovimientos.EXITO: cuenta.logger.log_informacion("UI_MAPA", "Personaje desplazado a la casilla: " + celda_destino.id); break; case ResultadoMovimientos.MISMA_CELDA: cuenta.logger.log_Error("UI_MAPA", "El jugador está en la misma a la seleccionada"); break; default: cuenta.logger.log_Error("UI_MAPA", "Error desplazando el personaje a la casilla: " + celda_destino.id + " resultado: " + resultado); break; } } else { cuenta.logger.log_Error("UI_MAPA", "Error al intentar mover el personaje" + celda_actual.id); } }
public ColisaoEsquerdaMonstro(Game jogo, Mapa m, MonstroAnimado p, Personagem per) : base(jogo) { this.m = m; this.p = p; this.per = per; }
public List <Mapa> generarPuntos(DateTime fechaInicio, DateTime fechaFin, string tipos) { List <int> listaTipos = new List <int>(); List <string> stringsTipos = new List <string>(); stringsTipos = tipos.Split(',').ToList <string>(); foreach (string tipo in stringsTipos) { int temp = 0; temp = int.Parse(tipo); listaTipos.Add(temp); } Database.Connection.OpenAsync(); var query = new Mapa(Database); var dateIni = new DateTimeOffset(fechaInicio); var dateIniUnix = dateIni.ToUnixTimeSeconds(); var dateFin = new DateTimeOffset(fechaFin); var dateFinUnix = dateFin.ToUnixTimeSeconds(); List <Mapa> lista = query.obtenerPuntos(dateIniUnix, dateFinUnix, listaTipos); return(lista); }
public Task get_Cambiar_Pos_Pelea(ClienteTcp cliente, string paquete) => Task.Run(() => { if (!cliente.cuenta.esta_Luchando()) { return; } Cuenta cuenta = cliente.cuenta; string[] separador_posiciones = paquete.Substring(4).Split('|'); int id_entidad; short celda; Luchadores luchador; Mapa mapa = cuenta.juego.mapa; foreach (string posicion in separador_posiciones) { id_entidad = int.Parse(posicion.Split(';')[0]); celda = short.Parse(posicion.Split(';')[1]); luchador = cuenta.juego.pelea.get_Luchador_Por_Id(id_entidad); if (luchador != null) { luchador.celda = mapa.get_Celda_Id(celda); } } });
public ComoLlegar() { InitializeComponent(); var markerLayer = new MapLayer(); var posicion = new GeoCoordinate(-34.5584560886206, -58.4167098999023); var pushpin = new MapOverlay() { GeoCoordinate = posicion, }; markerLayer.Add(pushpin); Mapa.Layers.Add(markerLayer); Mapa.Center = posicion; Mapa.ZoomLevel = 14; if (App.Configuration.IsLocationEnabled && PositionService.GetCurrentLocation().Location != null) { pushpin = new MapOverlay { GeoCoordinate = PositionService.GetCurrentLocation().Location, ContentTemplate = App.Current.Resources["locationPushpinTemplate"] as DataTemplate, }; markerLayer.Add(pushpin); Mapa.SetView(Mapa.CreateBoundingRectangle()); } }
internal override Task <ResultadosAcciones> proceso(Cuenta cuenta) { Mapa mapa = cuenta.juego.mapa; List <Monstruo> grupos_disponibles = mapa.get_Grupo_Monstruos(monstruos_minimos, monstruos_maximos, monstruo_nivel_minimo, monstruo_nivel_maximo, monstruos_prohibidos, monstruos_obligatorios); if (grupos_disponibles.Count > 0) { foreach (Monstruo grupo_monstruo in grupos_disponibles) { switch (cuenta.juego.manejador.movimientos.get_Mover_A_Celda(grupo_monstruo.celda, new List <Celda>(), false)) { case ResultadoMovimientos.EXITO: cuenta.logger.log_informacion("SCRIPT", $"Movimiento hacia un grupo de monstruos celda: {grupo_monstruo.celda.id}, total de monstruos: {grupo_monstruo.get_Total_Monstruos}, nivel total del grupo: {grupo_monstruo.get_Total_Nivel_Grupo}"); return(resultado_procesado); case ResultadoMovimientos.PATHFINDING_ERROR: case ResultadoMovimientos.MISMA_CELDA: cuenta.logger.log_Peligro("SCRIPT", "El camino hacia el grupo de monstruos está bloqueado"); continue; default: cuenta.script.detener_Script("Movimiento hacia el grupo de monstruos erróneo"); return(resultado_fallado); } } } return(resultado_hecho); }
public ActionResult Index(HttpPostedFileBase file) { if (file != null && file.ContentLength > 0) { var fileName = Path.GetFileName(file.FileName); var dataFile = Server.MapPath("~/Datoteka"); var path = Path.Combine(dataFile, fileName); file.SaveAs(path); string userData = new StreamReader(file.InputStream).ReadToEnd(); Mapa metro = new Mapa("ZagrebMetro", userData); TempData["Metro"] = userData; TempData["M"] = metro; //Mapa metro2 = TempData.Peek("Metro"); //TempData.Keep("Metro"); //return View(Rute); //return RedirectToAction("zagrebPost", "zagrebmetro"); return(View("Pogled2")); } else { throw new HttpException(404, "File not found"); } }
public static Mapa CrearMapa(List <Provincia> provincias) { Mapa mapa = null; mapa = new Mapa(provincias, EncontrarFronteras); return(mapa); }
public async void Bind() { if (Services.Sistema.CONFIG != null) { var a = await coder.GetPositionsForAddressAsync(Services.Sistema.CONFIG.endereco); if (a.Any()) { Services.Sistema.CONFIG.position = new Position(a.ElementAt(0).Latitude, a.ElementAt(0).Longitude); } Mapa.MoveToRegion(MapSpan.FromCenterAndRadius(Services.Sistema.CONFIG.position, Distance.FromMiles(0.5))); var pin = new Pin { Type = PinType.Place, Position = (Services.Sistema.CONFIG.position), Label = Services.Sistema.CONFIG.titulo, Address = Services.Sistema.CONFIG.endereco, Icon = BitmapDescriptorFactory.FromView(new ViewPin()) }; Mapa.Pins.Add(pin); this.BindingContext = Services.Sistema.CONFIG; } }
public void get_Combate_Info_Stats(ClienteTcp cliente, string paquete) { string[] separador = paquete.Substring(4).Split('|'); Mapa mapa = cliente.cuenta.juego.mapa; for (int i = 0; i < separador.Length; ++i) { string[] _loc6_ = separador[i].Split(';'); int id = int.Parse(_loc6_[0]); Luchadores luchador = cliente.cuenta.juego.pelea.get_Luchador_Por_Id(id); if (_loc6_.Length != 0) { bool esta_vivo = _loc6_[1].Equals("0"); if (esta_vivo) { int vida_actual = int.Parse(_loc6_[2]); byte pa = byte.Parse(_loc6_[3]); byte pm = byte.Parse(_loc6_[4]); short celda = short.Parse(_loc6_[5]); int vida_maxima = int.Parse(_loc6_[7]); if (celda > 0)//son espectadores { byte equipo = Convert.ToByte(id > 0 ? 1 : 0); luchador?.get_Actualizar_Luchador(id, esta_vivo, vida_actual, pa, pm, mapa.get_Celda_Id(celda), vida_maxima, equipo); } } else { luchador?.get_Actualizar_Luchador(id, esta_vivo, 0, 0, 0, null, 0, 0); } } } }
public async Task get_Cambiar_Pos_Pelea(ClienteTcp cliente, string paquete) { Cuenta cuenta = cliente.cuenta; string[] separador_posiciones = paquete.Substring(4).Split('|'); int id_entidad; short celda; Mapa mapa = cuenta.juego.mapa; foreach (string posicion in separador_posiciones) { id_entidad = int.Parse(posicion.Split(';')[0]); celda = short.Parse(posicion.Split(';')[1]); if (id_entidad == cuenta.juego.personaje.id) { await Task.Delay(150); cliente.enviar_Paquete("GR1");//boton listo } Luchadores luchador = cuenta.juego.pelea.get_Luchador_Por_Id(id_entidad); if (luchador != null) { luchador.celda = mapa.get_Celda_Id(celda); } } }
hero = (GameObject)Instantiate(hero, spawnPosition.position, Quaternion.identity); origPosition = spawnPosition; circleTriggers = (GameObject)Instantiate(circleTriggers, spawnPosition.position, Quaternion.identity); circleTriggers.GetComponent<FollowTarget>().target = hero.transform; // DontDestroyOnLoad(instance); } /* else if (instance != this) {
int puntos; // Puntuacion obtenida por el usuario #endregion Fields #region Constructors // Inicialización al comenzar la sesión de juego public Partida() { miPersonaje = new Personaje(this); miPantallaJuego = new Mapa(this); miMarcador = new Marcador(this); puntos = 0; partidaTerminada = false; fuenteSans18 = new Fuente("FreeSansBold.ttf", 18); }
void CargarRecursos () { var textAsset = (TextAsset) Resources.Load("niveles"); var nvd = new NivelSerializer (); niveles = nvd.NivelesDeserializer (textAsset.text); var mapserializer = new Mapaserializer(); mapa = mapserializer.MapaDeserializer (textAsset.text); }
void Awake() { //if (instance == null)