Hi all. How do I determine if there are no gameobjects in set locations?
I’m making a 2d tile based game and I want to check if there are any gameobjects in a set coordinate.
I have no problems checking if there are any gameobjects in a location. I just ran a foreach for every gameobject with certain tags and do actions if they are in certain tiles. However, I don’t know what to do for empty tiles.
I’m planning to make an empty gameobject with a collider then iterate it through the locations and check if there are any trigger/collision to other gameobjects. Should I got through this method or are there any simpler way to do this?
Thank you in advance.