Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach(Transform child in transform)
- {
- Text[] scores = child.GetComponentsInChildren<Text>();
- Text frame = null;
- List<Text> bowls = new List<Text>();
- for(int i = 0; i < scores.Length; ++i)
- {
- if(i + 1 == scores.Length)
- frame = scores[i];
- else
- bowls.Add(scores[i]);
- }
- bowlScores.AddRange(bowls);
- frameScores.Add(frame);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement