From c4e6d5838229decfda40a33d7355522f1a47921c Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Thu, 10 Dec 2020 10:25:07 +0800 Subject: [PATCH] login注释 --- 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