From 7642edfe978cbfbef9ef0da67fed4b00ee99b0d4 Mon Sep 17 00:00:00 2001 From: dgflash Date: Thu, 25 May 2023 09:25:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9E=E4=BD=93=E9=94=80?= =?UTF-8?q?=E6=AF=81=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E9=94=80=E6=AF=81=E5=AD=90=E5=AE=9E=E4=BD=93=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E6=98=AF=E9=94=80=E6=AF=81=E5=AD=90=E5=AE=9E=E4=BD=93=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=B9=B6=E6=B2=A1=E6=9C=89removeChild?= =?UTF-8?q?=E3=80=82=E5=AF=BC=E8=87=B4=E4=BA=86=E8=BF=99=E4=B8=AA=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E5=86=8D=E6=AC=A1=E8=A2=AB=E4=BD=BF=E7=94=A8=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=5Fchildren=E8=BF=98=E7=95=99=E5=AD=98=E7=9D=80?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E5=AD=90=E5=AE=9E=E4=BD=93=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8=EF=BC=8C=E4=BD=86=E6=98=AF=E8=BF=99=E4=B8=AA=E5=AD=90?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E5=B7=B2=E7=BB=8F=E8=A2=AB=E9=94=80=E6=AF=81?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/libs/ecs/ECSEntity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/libs/ecs/ECSEntity.ts b/assets/libs/ecs/ECSEntity.ts index e2b68df..6ac555e 100644 --- a/assets/libs/ecs/ECSEntity.ts +++ b/assets/libs/ecs/ECSEntity.ts @@ -267,6 +267,7 @@ export class ECSEntity { destroy() { if (this._children) { this._children.forEach(e => { + this.removeChild(e); e.destroy(); }); }