I have a list of Tiles. Each tile contains a Vector2 and a Texture. Simple tile class.
List<Tile>tiles = new List<Tile>();
If I click in the centre of the group of tiles, say a grid that's 10x10, how can I remove the tiles in the certain 2x2 area. Or how can I manipulate tiles that are already added to the list, based on their position? Is there an easier way than iterating through them every cycle and matching the position to the tile?
Sorry if this is a confusing question. I don't know how to word it.