Guest User

Untitled

a guest
Dec 16th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. for (var num = balls.Count -1; 0 < balls.Count; num--) {
  2. balls.RemoveAt (num);
  3.  
  4. for (var num = balls.Count -1; 0 < balls.Count; num--) {
  5. Destroy (balls[num]);
  6. }
  7.  
  8. for (var num = balls.Count -1; 0 < balls.Count; num--) {
  9. Destroy (balls[num]); //オブジェクトの削除
  10. balls.RemoveAt (num); //リストの削除
  11. }
Add Comment
Please, Sign In to add comment