void Update() { int x = Static.enemycount; Debug.Log("Cuanto vale x: " + x); int suma = Static.Add(50, 30); Debug.Log("El resultado de la suma es: " + suma); Sobrecarga mysuma = new Sobrecarga(); int resultadoint = mysuma.suma(50, 80); string resultadosuma = mysuma.suma("hola", "grupo"); Debug.Log(resultadoint); Debug.Log(resultadosuma); }
private void OnGetWallpapers(TLVector <TLWallPaperBase> results, int skip, int take) { var currentItem = StateService.CurrentBackground; foreach (var result in results.Skip(skip).Take(take)) { var wallpaper = result as TLWallPaper; if (wallpaper == null) { continue; } var size = BackgroundImageConverter.GetPhotoSize(wallpaper.Sizes, 480.0); if (size != null) { var location = size.Location as TLFileLocation; if (location != null) { var fileName = String.Format("{0}_{1}_{2}.jpg", location.VolumeId, location.LocalId, location.Secret); BackgroundItem item; var isSelected = currentItem != null && "telegram" + wallpaper.Id == currentItem.Name; if (isSelected) { item = currentItem; item.IsSelected = true; } else { item = new BackgroundItem { Name = "telegram" + wallpaper.Id, Wallpaper = wallpaper, IsoFileName = fileName }; } Static.Add(item); } } } }