In my game, all doors are locked and filled with tiles. If a door is connected to some room then I want to destroy all the tiles in front of it to make way. My first idea is to get the door position, and then loop through all the tiles of the "wall" tilemap in front of (or behind) it and remove them. How to get the door position of a room.? If a door is not connected to any room then the connectedRoom will be null right?
In my game, all doors are locked and filled with tiles. If a door is connected to some room then I want to destroy all the tiles in front of it to make way. My first idea is to get the door position, and then loop through all the tiles of the "wall" tilemap in front of (or behind) it and remove them. How to get the door position of a room.? If a door is not connected to any room then the connectedRoom will be null right?