Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach(var scores in transform.Cast<Transform>()
- .Select(child => child.GetComponentsInChildren<Text>())
- .Select(scores =>
- new { frame = scores.Last(), bowls = scores.Where(obj => obj != scores.Last()) }
- ))
- {
- bowlScores.AddRange(scores.bowls);
- frameScores.Add(scores.frame);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement