Server-Based Tabletop Game Unit Object

Hello,

we want to develop a tabletop game for the Hololense. The logic runs completely on a server. Unity and the Hololense are just for the illustration.

I have to design and connect the units with the Server-Logic. Unfortunately, I am still a Novice programmer. So my question: I get a JSON object from the server. It will be converted into a C# object in our client. This object contains all the information about my unit. How can I assign this data to my model in unity?

I think the solution is very simple, but i stuck at this point.

Thank you :slight_smile:

I’m not sure if this is what you mean. but once you have the data it’s just a variable basically.

Example is in our game we download data based on the players account and store it in a static variable. This variable can be accessed easily when we need to get it(since it’s static).

But you can easily just have a script on the model that has a variable to store your c# object.

so if you had a Player.cs class

public PlayerData playerData; //Deserialize your json into this variable.