| | |
| | | return true; |
| | | } |
| | | |
| | | public PlacementTile GetOneTile(int x, int y) |
| | | { |
| | | return m_Tiles[x, y]; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Returns the world coordinates corresponding to a grid location. |
| | | /// 把格子坐标转换成世界坐标 |
| | |
| | | EndlessTowerGridOpen tgo = buyButton.GetComponent<EndlessTowerGridOpen>(); |
| | | if (tgo) |
| | | { |
| | | tgo.SetBuyBtnInfo(x, y, this); |
| | | tgo.cashText.SetText(TowerPlacementGridEndless.GRID_OPENCASH.ToString()); |
| | | tgo.SetBuyBtnInfo(x, y, this,TowerPlacementGridEndless.GRID_OPENCASH.ToString()); |
| | | |
| | | m_arrTGO[x, y] = tgo; |
| | | tgo.CheckCurrencyEnough(); |
| | | } |