I'm trying to make floating blocks disappear (that aren't the grey ground tile) ```private void FloatingTileUpdater()
{
var cells = GetUsedCells(0);
foreach (var cell in cells)
{
bool cellIsFloating = true;
var surroundingCells = GetSurroundingCells(cell);
var cellAtlas = GetCellAtlasCoords(0, cell);
foreach (var surCell in surroundingCells)
{
var surCellAtlas = GetCellAtlasCoords(0, surCell);
if (surCellAtlas != new Vector2I(-1, -1) || cellAtlas == new Vector2I(2, 0))
{
cellIsFloating = false;
break;
}
}
if (cellIsFloating)
{
EraseCell(0, cell);
}
}
}```
Currently, a single tile will disappear when floating and I understand that two floating blocks checking eachother that one another are there will mean that they won't disappear but I can't think of how to make it otherwise, any advice? Thanks!