Merge branch 'main' of http://shu.sheziwanglo.cn:3000/shurongsen/UnityCommon
This commit is contained in:
commit
3393f14b32
10
Role/Role.cs
10
Role/Role.cs
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user