#One variable needs to be synchronized

4 messages · Page 1 of 1 (latest)

cunning shard
#

In my room script, the host has race settings, and players who connect should see them (much like in Among Us), but the _raceLaps variable is not synchronized, and when I apply the SyncVar attribute to it, I get an error, since it is not a NetworkBehavior class. How can I sync it?

tired rover
cunning shard
tired rover
# cunning shard I sent messages and now the variable is synchronized, but for some reason when t...

Sorry I am not the best at room manager. But from what I understand is that when you finish with roommanager it then loads you game. So room manager is used just as stepping stone. Normally people just overrides OnServerConnect() to register new List of users, with their information like authetication or usernames and connection id for easy acces from other sources. You could do that was well. I am sure there is better method, but as I mentioned i did not work with room manager a lot.