Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. static int i,j;
  2.  
  3.  
  4. // Use this for initialization
  5. void Start () {
  6.  
  7. var objet0 = new GameObject ("objet" + 0);
  8.  
  9. }
  10.  
  11. // Update is called once per frame
  12. void Update () {
  13. if (Input.GetKeyDown (KeyCode.T)) {
  14. for (i =1;i<=10; i++) {
  15. var objeti = new GameObject ("objet" + i);
  16. print ("création" + i);
  17.  
  18.  
  19. for (j=10;j>=5; j--) {
  20. Destroy (objetj);
  21. print ("destruction" + j);
  22. }
  23.  
  24.  
  25. }
  26.  
  27.  
  28.  
  29. print ("-------------------------");
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement