| | |
| | | using UnityEngine; |
| | | using TowerDefense.Level; |
| | | using UnityEditor; |
| | | using KTGMGemClient; |
| | | using Core.Utilities; |
| | | |
| | | namespace TowerDefense.UI.HUD |
| | | { |
| | |
| | | |
| | | public ParticleSystem myOpenPS;//购买后的特效 |
| | | public ParticleSystem myPutPS;//交换塔位置后的特效 |
| | | |
| | | /// <summary> |
| | | /// 所在的格子坐标 |
| | | /// </summary> |
| | | public IntVector2 GridPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Update the state of this placement tile |
| | |
| | | if (isOn && towerName != "") |
| | | { |
| | | SetTowerVirtualshadow(towerName); |
| | | EndlessWaveLineManager.instance.SetWaveLineShow(GridPosition.x, true); |
| | | } |
| | | else if (!isOn && towerVSRenderer.enabled) |
| | | { |
| | | towerVSRenderer.enabled = false; |
| | | EndlessWaveLineManager.instance.SetWaveLineShow(GridPosition.x, false); |
| | | } |
| | | |
| | | } |