weixudong
2020-12-09 17c6e8b6f2aee4ed9a15c886f54a73f0cb61b125
Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs
@@ -58,7 +58,7 @@
        /// 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
@@ -896,11 +896,21 @@
            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()