| | |
| | | Agent eag = listAg[ti]; |
| | | if (eag == ag) continue; |
| | | |
| | | Vector3 fpos = eag.transform.position; |
| | | tpos.y = 0; |
| | | fpos.y = 0; |
| | | if (Vector3.Distance(tpos, fpos) > 12) continue; |
| | | |
| | | if (eag.AgentType == SpawnAgentType.BubbleBomb) |
| | | { |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBossSkillBubbleBombGetHit, (eag as BubbleBombAgent).Id); |
| | | } |
| | | else |
| | | { |
| | | Vector3 fpos = eag.transform.position; |
| | | tpos.y = 0; |
| | | fpos.y = 0; |
| | | if (Vector3.Distance(tpos, fpos) < 12) |
| | | { |
| | | eag.TakeDamage(damage, fpos, null); |
| | | if (!eag.opponentAgent) |
| | |
| | | } |
| | | if (eag.isDead) |
| | | ++deathCount; |
| | | } |
| | | } |
| | | } |
| | | |