Hyluss

[Unity] test xD

Apr 20th, 2018
261
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. List<GameObject> randomFronts = new List<GameObject>();
  2. for (int i = 0; i < types.Length; i++)
  3. {
  4.    randomFronts.Add(frontTypes.List.Where(x => x.type == types[i]).Select(e => e.frontPrefab as GameObject).Single());
  5. }
  6.  
  7. ||
  8.  
  9. randomFronts.Add(frontTypes.List.Where(x => x.type == types[i]).First(e => e.frontPrefab as GameObject).frontPrefab as GameObject);
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment