♻️ Better miner tile

This commit is contained in:
2025-08-29 18:05:30 +08:00
parent 60b6d6f989
commit ac1d8cfab9
3 changed files with 27 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ public partial class GridManager : Node
}
}
public Node2D? GetBuildingAtCell(Vector2I cell, GridLayer layer = GridLayer.Building)
public Node2D? GetTileAtCell(Vector2I cell, GridLayer layer = GridLayer.Building)
{
return _layers[layer].TryGetValue(cell, out var data) ? data.Building : null;
}