public void PopulateScoreTable(List <Score> scores) { ClearScoreTable(); for (int i = 0; i < scores.Count; i++) { ScoreDisplay newScoreDisplay = Instantiate <ScoreDisplay>(scoreDisplayPrefab); newScoreDisplay.transform.parent = scoreLayoutGroup.transform; newScoreDisplay.Populate(scores[i], i + 1); activeScoreDisplays.Add(newScoreDisplay); } }