| | |
| | | ps.Play(); |
| | | AudioSourceManager.Ins.Play(AudioEnum.FireSkill); |
| | | |
| | | Destroy(obj, ps.main.duration); |
| | | Destroy(obj, 5f); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | ps.Play(); |
| | | AudioSourceManager.Ins.Play(AudioEnum.LightningSkill); |
| | | |
| | | Destroy(obj, ps.main.duration); |
| | | Destroy(obj, 5f); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// 某一个位置攻击塔位放下。 |
| | | /// </summary> |
| | | /// <param name="pos"></param> |
| | | public void AttackTowerFixed(int pos) |
| | | public void AttackTowerFixed(int pos, bool playEffect = true) |
| | | { |
| | | if (pos >= waveLineList.Count || waveLineList[pos] == null) return; |
| | | if (pos >= waveLineList.Count || waveLineList[pos] == null || !playEffect) return; |
| | | |
| | | // 无尽模式改为只有一条兵线 |
| | | WaveLineFlash(pos); |