XR player freezes when another leaves the room. What is the reason?
I'm working on a XR multiplayer project from my studies and can't figure out why my player freezes when someone else leaves the room.
Here is the scenario:
P1 enters the room. P2 joins. When one of the two players leaves the room, the remaining players freeze. Means: They can't move their hands anymore and they can't walk. The head/camera works means they can look around. If now another player enters the room everything is back to normal.
The code below is the logic I use within the rooms. Line 30 has not changed anything. The player disappears when he leaves the room regardless of this line.
Has anyone had similar experiences or any idea what the problem might be? I think it could be specifically the XR Toolkit (2.0) scripts.