So everyone I’m basically planning to implement a cabin picking sytem for my Titanic game where if you touch a cabin’s door, it will claim it for you during the round, and you’ll have control over the door
while this can work wonders with the smaller cabins ( which have a single door ), I have no idea how to make it work for the bigger staterooms
You will want to have a way of grouping the doors. Such as having them be all in a folder or have a shared tag, etc…
So that when one door is claimed, they all are marked as claimed.
If it were me, I would have each door contain an attribute for who owns it.
I would group doors in folders organized by room.
When a door is touched, and unclaimed, it gets itself and any siblings from its parent folder, and sets them all as claimed by the same player.