Commit 5dfd8f36 authored by 李维's avatar 李维

dev commit

parent 8ce2c61f
...@@ -141,6 +141,8 @@ export class MySprite extends Sprite { ...@@ -141,6 +141,8 @@ export class MySprite extends Sprite {
const index = this.children.indexOf(child); const index = this.children.indexOf(child);
if (index !== -1) { if (index !== -1) {
this.children.splice(index, 1); this.children.splice(index, 1);
}else{
console.warn("Can not delete child!")
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment