| | |
| | | /// <param name="allTowerP"></param> |
| | | public void PlayPS(List<IntVector2> allTowerP) |
| | | { |
| | | for (int i = 0; i < allTowerP.Count; i++) |
| | | { |
| | | m_Tiles[allTowerP[i].x, allTowerP[i].y].SetParticleSystem(true); |
| | | } |
| | | // for (int i = 0; i < allTowerP.Count; i++) |
| | | // { |
| | | // m_Tiles[allTowerP[i].x, allTowerP[i].y].SetParticleSystem(true); |
| | | // } |
| | | } |
| | | /// <summary> |
| | | /// /// 停止所有升级动画 |
| | | /// </summary> |
| | | public void StopPS() |
| | | { |
| | | int iy = dimensions.y - 1;//3 |
| | | for (int ix = 0; ix < dimensions.x; ix++) |
| | | { |
| | | for (int y = iy; y >= dimensions.y - AttackRowNumbers; --y) |
| | | { |
| | | if (m_arrGridType[ix, y] == PlacementGridType.EGridOpen) |
| | | { |
| | | m_Tiles[ix, y].SetParticleSystem(false); |
| | | } |
| | | } |
| | | } |
| | | // int iy = dimensions.y - 1;//3 |
| | | // for (int ix = 0; ix < dimensions.x; ix++) |
| | | // { |
| | | // for (int y = iy; y >= dimensions.y - AttackRowNumbers; --y) |
| | | // { |
| | | // if (m_arrGridType[ix, y] == PlacementGridType.EGridOpen) |
| | | // { |
| | | // m_Tiles[ix, y].SetParticleSystem(false); |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | } |
| | | StopPS(); |
| | | //StopPS(); |
| | | } |
| | | |
| | | #if UNITY_EDITOR |