Hello, everyone, it’s my first attempt on designing a multiplayer game.
I have a working lobby, the players are in sync as well.
The hex tile gameworld is defined (size, random seed …) in the lobby. Every client then generates the same world. Here is the problem: If I change a variable on one of the tiles (for example the integer representing the climate), the change remains local. I have used Syncvar which works fine for anything else but the tiles.
I guess every player has a similar looking gameworld but because of the way I generate them, the tiles are all local? What is the best way to synchronize them?
GameObject hex_go = (GameObject)Instantiate (hexPrefab, new Vector3 (xPos, 0, y * zOffset), Quaternion.identity);