This commit is contained in:
GL 2025-01-06 16:15:30 +08:00
commit 3393f14b32

View File

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