void Refresh() { List <MapData> maps = MapManager.GetMaps(); Clear(); Debug.Log("[MapDisplayer] Refresh"); int current = 0; foreach (MapData map in maps) { MapEntry entry = Instantiate(entryPrefab); entry.Initalize(this, map); entry.transform.SetParent(transform); entry.SetColor(current % 2 == 0 ? colorEven : colorOdd); current++; } }