From 17c6e8b6f2aee4ed9a15c886f54a73f0cb61b125 Mon Sep 17 00:00:00 2001 From: weixudong <weixudong4700@ktgame.com> Date: Wed, 09 Dec 2020 17:14:59 +0800 Subject: [PATCH] Merge branch 'master' of ssh://172.16.1.52:8091/GemBattle into master --- Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs b/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs index c3ac179..9ef700a 100644 --- a/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs +++ b/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() -- Gitblit v1.9.1