Guest User

Untitled

a guest
Nov 18th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. for (int i = floors.Count - 1; i > -1; i--)
  2. {
  3. if (floors[i].transform.position.x < transform.position.x - 20)
  4. {
  5. GameObject transf = floors[i];
  6. floors.Remove(transf);
  7. Destroy(transf);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment