Guest User

Untitled

a guest
Oct 24th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. private Rigidbody2D rigidBody;
  2. private Renderer renders;
  3.  
  4. void Start()
  5. {
  6. rigidBody = GetComponent<Rigidbody2D>();
  7. renders = GetComponent<Renderer>();
  8.  
  9. if (isLooping)
  10. {
  11. for(int i = 0; i < transform.childCount; i++)
  12. {
  13. Transform child = transform.GetChild(i);
  14.  
  15. if (child.renderer != null)
  16. {
  17. backgroundPart.Add(child);
  18. }
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment