Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = floors.Count - 1; i > -1; i--)
- {
- if (floors[i].transform.position.x < transform.position.x - 20)
- {
- GameObject transf = floors[i];
- floors.Remove(transf);
- Destroy(transf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment