修复敌人在终点死亡偶尔卡死,不能生成下一波的bug

This commit is contained in:
wulongxiao 2025-01-07 16:12:35 +08:00
parent f7cc8455af
commit 05ee943ed9

View File

@ -117,6 +117,9 @@ public class enemy : Role
{
UIContorl.instance.Hp -= 1;
UIContorl.instance.ShowRedMask();
//½ÇÉ«ËÀÍö
SpawnMonster.intance.enemysList.Remove(this.gameObject);
Destroy(this.gameObject);
}
}