void Start() { List <string> decades = new List <string>(); var tempList = SaveAndLoad.LoadSongs(); tempList = tempList.OrderBy(o => o.year).ToList(); foreach (var aux in tempList) { var dec = ConfigUtils.YearToDecade(aux.year); if (!decades.Contains(dec)) { decades.Add(dec); } } foreach (var aux in decades) { CreateDecade(aux); } }
public List <Song> LoadSongs() { return(SaveAndLoad.LoadSongs()); }