| | |
| | | /// 用于排序的Buf. |
| | | /// </summary> |
| | | protected Agent[] agentTmpArr = new Agent[3]; |
| | | int deathCount = 0;//被火技能杀死的怪物 |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | deathCount = 0; |
| | | for (int i = 0; i < agentWaveLineArray.Length; i++) |
| | | { |
| | | wavelineIns = agentWaveLineArray[i]; |
| | | CalculateWavelineAttack(slinfo, wavelineIns, sid, slevel); |
| | | } |
| | | |
| | | if (deathCount >= 10) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessOneTimeKillCount, deathCount); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | List<Agent> listAg = wavelineIns.listAgent; |
| | | // 统计被火技能直接烧死的数量 |
| | | int deathCount = 0; |
| | | |
| | | for (int ti = listAg.Count - 1; ti >= 0; ti--) |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | if (deathCount > 1) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessOneTimeKillCount, deathCount); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | Vector3 fpos = eag.transform.position; |
| | | tpos.y = 0; |
| | | fpos.y = 0; |
| | | if (Vector3.Distance(tpos, fpos) > 12) continue; |
| | | // 8 打4个木, 12 打 6个木 |
| | | if (Vector3.Distance(tpos, fpos) > 8) continue; |
| | | |
| | | if (eag.AgentType == SpawnAgentType.BubbleBomb) |
| | | { |