Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Rigidbody2D rigidBody;
- private Renderer renders;
- void Start()
- {
- rigidBody = GetComponent<Rigidbody2D>();
- renders = GetComponent<Renderer>();
- if (isLooping)
- {
- for(int i = 0; i < transform.childCount; i++)
- {
- Transform child = transform.GetChild(i);
- if (child.renderer != null)
- {
- backgroundPart.Add(child);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment