This commit is contained in:
GL 2025-01-06 16:52:14 +08:00
parent 3393f14b32
commit cbe42ad621

View File

@ -319,13 +319,17 @@ public class Role : Fun
if (lsanimationHighlight == dieIndex) if (lsanimationHighlight == dieIndex)
{ {
SpawnPool.intance.DeadNumber += 1; //SpawnPool.intance.DeadNumber += 1;
Destroy(gameObject);
SpawnMonster.intance.enemysList.Remove(this.gameObject); SpawnMonster.intance.enemysList.Remove(this.gameObject);
if (SpawnMonster.intance.enemysList.Count<=0) if (SpawnMonster.intance.enemysList.Count<=0)
{ {
SpawnMonster.intance.Index += 1; SpawnMonster.intance.Index += 1;
} }
Destroy(gameObject);
Destroy(this);
//IsDead = true;
} }
if (lsanimationHighlight == hitIndex) if (lsanimationHighlight == hitIndex)