| | |
| | | agentList.Add(list[i]); |
| | | } |
| | | |
| | | // 一次性死亡数量 |
| | | int deathCount = 0; |
| | | |
| | | while (agentList.Count > 0) |
| | | { |
| | | Agent agent = agentList[0]; |
| | |
| | | agent.PlayOnHitImmediately(); |
| | | EndlessGameUI.instance.generateBloodText(agent.position, damage); |
| | | agent.TakeDamage(damage, agent.position, alignmentProvider); |
| | | |
| | | if (agent.isDead) |
| | | ++deathCount; |
| | | } |
| | | else if (agent.AgentType == SpawnAgentType.BubbleBomb) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBossSkillBubbleBombGetHit, (agent as BubbleBombAgent).Id); |
| | | } |
| | | |
| | | if (deathCount > 1) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessOneTimeKillCount, deathCount); |
| | | } |
| | | |
| | | public void PlayFreezeEffect(int waveLineId) |