RemoveTower() public method

public RemoveTower ( ) : void
return void
 public void BuildTower(Tile tile)
 {
     List<Tile> path;
     Tower tower = new TowerTest(tile);
     tile.SetTower(tower);
     bool canBuildTower = true;
     for (int i = 0; i < TileMap.Tiles.Count; i++)
     {
         path = TileMap.Tiles[i].GetPathTo(goalBase.GetTile());
         if (path.Count == 0 && TileMap.Tiles[i] != goalBase.GetTile())
         {
             canBuildTower = false;
         }
     }
     if (canBuildTower)
     {
         towers.Add(tower);
     }
     else
     {
         tile.RemoveTower();
     }
 }
 public static void RemoveTower(Tile tile)
 {
     tile.RemoveTower();
     UpdateTilePaths();
 }