Hi,
I have a gameserver where the players are connected(max player connection is 5). I want that the server says which turn is it right now. Playerscript has a [SyncVar] boolean.
easier explaind:
-
players are connected to the gameserver
-
gameserver knows which players are connected (with the connection id from the players. First connected player gets always the connection id 0)
-
gameserver says that connection id 0’s turn
-
connection id 0 says I’m done (endturn) to the gameserver
-
gameserver says that the next turn is connection id 1
and so on until the last player ended the turn and it will begin again with connection id 0.
Can someone help me with this?