
Icon | Member | Description |
---|---|---|
![]() | SwitchPlayer()()() | |
![]() | SwitchPlayer(Int32) |
Turn a player inside a game room into a spectator. All players have their player id property set to a value > 0; when a spectator becomes a player, his playerId is set to -1. If the user joined more than one room, the id of the room where the switch should occurr must be passed to this method. The switch operation is successful only if at least one spectator slot is available in the room. |