From 05ee943ed945a67d27a40d852c95f83357452558 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Tue, 7 Jan 2025 16:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=8C=E4=BA=BA=E5=9C=A8?= =?UTF-8?q?=E7=BB=88=E7=82=B9=E6=AD=BB=E4=BA=A1=E5=81=B6=E5=B0=94=E5=8D=A1?= =?UTF-8?q?=E6=AD=BB=EF=BC=8C=E4=B8=8D=E8=83=BD=E7=94=9F=E6=88=90=E4=B8=8B?= =?UTF-8?q?=E4=B8=80=E6=B3=A2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/script/A_Fight/enemy.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meng_yao/Assets/script/A_Fight/enemy.cs b/meng_yao/Assets/script/A_Fight/enemy.cs index aba2af02..753265f7 100644 --- a/meng_yao/Assets/script/A_Fight/enemy.cs +++ b/meng_yao/Assets/script/A_Fight/enemy.cs @@ -117,6 +117,9 @@ public class enemy : Role { UIContorl.instance.Hp -= 1; UIContorl.instance.ShowRedMask(); + + //½ÇÉ«ËÀÍö + SpawnMonster.intance.enemysList.Remove(this.gameObject); Destroy(this.gameObject); } }