died
This commit is contained in:
parent
3393f14b32
commit
cbe42ad621
@ -319,13 +319,17 @@ public class Role : Fun
|
||||
|
||||
if (lsanimationHighlight == dieIndex)
|
||||
{
|
||||
SpawnPool.intance.DeadNumber += 1;
|
||||
Destroy(gameObject);
|
||||
//SpawnPool.intance.DeadNumber += 1;
|
||||
|
||||
SpawnMonster.intance.enemysList.Remove(this.gameObject);
|
||||
if (SpawnMonster.intance.enemysList.Count<=0)
|
||||
{
|
||||
SpawnMonster.intance.Index += 1;
|
||||
}
|
||||
|
||||
Destroy(gameObject);
|
||||
Destroy(this);
|
||||
//IsDead = true;
|
||||
}
|
||||
|
||||
if (lsanimationHighlight == hitIndex)
|
||||
|
Loading…
Reference in New Issue
Block a user