敌人生成修改

This commit is contained in:
wulongxiao 2025-01-06 14:51:48 +08:00
parent 151503e59d
commit 192f710578

View File

@ -320,10 +320,12 @@ public class Role : Fun
if (lsanimationHighlight == dieIndex) if (lsanimationHighlight == dieIndex)
{ {
SpawnPool.intance.DeadNumber += 1; SpawnPool.intance.DeadNumber += 1;
Destroy(gameObject);
Destroy(gameObject); SpawnMonster.intance.enemysList.Remove(this.gameObject);
if (SpawnMonster.intance.enemysList.Count<=0)
{
SpawnMonster.intance.Index += 1;
}
} }
if (lsanimationHighlight == hitIndex) if (lsanimationHighlight == hitIndex)