| | |
| | | /// Size of the edge of a cell |
| | | /// </summary> |
| | | [Tooltip("The size of the edge of one grid cell for area. Should match the physical grid size of towers")] |
| | | public float gridSize = 1; |
| | | public float gridSize = 1;//1.109 |
| | | |
| | | /// <summary> |
| | | /// Inverted grid size, to multiply with |
| | |
| | | m_arrGridType[ix, iy] = PlacementGridType.EGridOpen; |
| | | m_AvailableCells[ix, iy] = false; |
| | | m_Tiles[ix, iy].SetTileType(PlacementGridType.EGridOpen); |
| | | m_Tiles[ix, iy].BuyPs(); |
| | | // 开启金币获取模式. |
| | | m_arrCoinGenTime[ix, dimensions.y - 1 - iy] = 0; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 交换塔后播放动效 |
| | | /// </summary> |
| | | /// <param name="ix"></param> |
| | | /// <param name="iy"></param> |
| | | public void PlayPutPs(int ix, int iy){ |
| | | m_Tiles[ix, iy].PutPs(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 免费开启所有塔位 |
| | | /// </summary> |
| | | public void OpenAllTowerGrid() |