Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Syncing a game board to a client

$
0
0
So I have a game board that is a 2d array of map cells. Each map cell is a class with various enums, ints and bools. The changes to the board happen on the server, but the clients have to see those changes, so I suppose the board exists on both the server and clients.

If I make the MapCell class inherit from NetworkBehavior, can I use the SyncVar attribute on it's fields and have it all work magically? Or does each map cell need to be an actual prefab with a NetworkIdentity component? Do I...

Syncing a game board to a client

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>