Skip to content

Commit

Permalink
chore: fix destroy sample
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Nov 17, 2023
1 parent b7bf873 commit 3a0293a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/base/Sample_Destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ class Sample_Destroy {
GUIHelp.addButton("del", () => {
for (let i = 0; i < list.length; i++) {
const obj = list[i];
obj.destroy();
obj.destroy(true);
}
list.length = 0;
});
GUIHelp.open()
}
Expand Down

0 comments on commit 3a0293a

Please sign in to comment.