Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using UnityEngine;
  5.  
  6. public class test : MonoBehaviour
  7. {
  8.  
  9.     public Transform parent;
  10.    
  11.     public Transform[] tr;
  12.    
  13.     // Start is called before the first frame update
  14.     void Start()
  15.     {
  16.  
  17.         foreach (Transform child in parent)
  18.         {
  19.             tr.Append(child);
  20.         }
  21.  
  22.     }
  23.  
  24.     // Update is called once per frame
  25.     void Update()
  26.     {
  27.        
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement