Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int i,j;
- // Use this for initialization
- void Start () {
- var objet0 = new GameObject ("objet" + 0);
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetKeyDown (KeyCode.T)) {
- for (i =1;i<=10; i++) {
- var objeti = new GameObject ("objet" + i);
- print ("création" + i);
- for (j=10;j>=5; j--) {
- Destroy (objetj);
- print ("destruction" + j);
- }
- }
- print ("-------------------------");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement