| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using Core.Utilities; |
| | | using TowerDefense.Towers.Placement; |
| | |
| | | using TowerDefense.Towers; |
| | | using TowerDefense.UI.HUD; |
| | | using TowerDefense.Agents; |
| | | using KTGMGemClient; |
| | | |
| | | /// <summary> |
| | | /// 对战管理器,主要负责屏幕上方的敌方数据结构和相关的显示展示 |
| | |
| | | if (index == -1) return; |
| | | |
| | | Tower tower = canReleaseSkillsQueue.Dequeue(); |
| | | int attributeId = tower.attributeId; |
| | | int level = tower.currentLevel; |
| | | |
| | | if (tower.towerFeature == EFeatureTower.Skill_Fire) |
| | | { |
| | | // 火,列攻击,直接在该兵线释放 |
| | | WaveLineOpponentManager.instance.PlayWaveLineEffect(index); |
| | | AgentInsManager.instance.ExecWavelineAttack(index, attributeId, level, true); |
| | | AgentInsManager.instance.ExecWavelineAttack(index, tower.ElfId, level, true); |
| | | } |
| | | else if (tower.towerFeature == EFeatureTower.Skill_Bomb) |
| | | { |
| | | // 控制,技能中心为离塔最近的小怪的中心点 |
| | | Agent agent = AgentInsManager.instance.GetMinDisAgent(index, true); |
| | | WaveLineOpponentManager.instance.PlayBattleAreaBombEffect(agent.transform.position); |
| | | AgentInsManager.instance.ExecBombAttack(agent.transform.position, attributeId, level, true); |
| | | AgentInsManager.instance.ExecBombAttack(agent.transform.position, tower.ElfId, level, true); |
| | | } |
| | | } |
| | | |
| | |
| | | Tower tower = this.getTower(ti, 0); |
| | | if (!tower) continue; |
| | | int lvl = tower.currentLevel; |
| | | if (lvl >= Tower.MAX_LEVEL) |
| | | if (lvl >= ElfUpgradeData.MaxTowerLevel) |
| | | continue; |
| | | if ((agentNum - 1) <= lvl) continue; |
| | | |