From 256205510ab4fe01ea3facbb8bee354dc8478ce6 Mon Sep 17 00:00:00 2001 From: dgflash Date: Wed, 17 Jul 2024 17:43:01 +0800 Subject: [PATCH] =?UTF-8?q?ECSEntity.destroy=E6=97=B6=EF=BC=8C=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=87=8A=E6=94=BE=E6=98=BE=E7=A4=BA=E5=B1=82=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/libs/ecs/ECSEntity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/libs/ecs/ECSEntity.ts b/assets/libs/ecs/ECSEntity.ts index 6c623f4..3b1a22c 100644 --- a/assets/libs/ecs/ECSEntity.ts +++ b/assets/libs/ecs/ECSEntity.ts @@ -264,7 +264,7 @@ export class ECSEntity { } private _remove(comp: CompType) { - this.remove(comp, false); + this.remove(comp, true); } /** 销毁实体,实体会被回收到实体缓存池中 */