How to determine if the player REjoined the room?
Djebedia
✭
Hi to all!
For example:
Disconnected players in my game are replaced with bots.
After player has rejoined the room the OnJoin() callback is called and I have to replace one of the bots with a player.
But if this is a new player who has just joined the room the OnJoin() callback is also called but I dont have to do anything.
So the question: is the a way to figure out if this is a join or REjoin?
P.S. I'm sorry for my English!
For example:
Disconnected players in my game are replaced with bots.
After player has rejoined the room the OnJoin() callback is called and I have to replace one of the bots with a player.
But if this is a new player who has just joined the room the OnJoin() callback is also called but I dont have to do anything.
So the question: is the a way to figure out if this is a join or REjoin?
P.S. I'm sorry for my English!
0
Comments
-
Yep, that's what I need, thanks a lot!0