From b2bb7613b4f2f14a8d3cd2af1476a32904d8435a Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Mon, 30 Dec 2024 13:35:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E4=BA=86=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Role.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Role/Role.cs b/Role/Role.cs index 410c74a..b1488e6 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -300,7 +300,7 @@ public class Role : Fun if (lsanimationHighlight == dieIndex) { SpawnPool.intance.DeadNumber += 1; - Destroy(gameObject); + // Destroy(gameObject); // SpawnPool.intance.ReturnEnemyToPool(this.gameObject); // 回收当前敌人到池中 // ResetAllStatus(); } From ae43a9f4b947987bfd0120fbde24b1d3ef63b8f4 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Mon, 30 Dec 2024 13:38:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Role.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Role/Role.cs b/Role/Role.cs index b1488e6..55da92f 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -300,9 +300,7 @@ public class Role : Fun if (lsanimationHighlight == dieIndex) { SpawnPool.intance.DeadNumber += 1; - // Destroy(gameObject); - // SpawnPool.intance.ReturnEnemyToPool(this.gameObject); // 回收当前敌人到池中 - // ResetAllStatus(); + Destroy(gameObject); } if (lsanimationHighlight == hitIndex)