public void PlayerDatatoServerandLocal(PlayerPropJson recievedplayerproperties) //mainly used for first initialise to read from database and sync to server. { playerproperties.carbonfootprint = recievedplayerproperties.carbonfootprint; playerproperties.username = recievedplayerproperties.username; CmdSetProperties(recievedplayerproperties.username, recievedplayerproperties.carbonfootprint); }
void CallBackAction(string response) { Debug.Log(response); output.text = response; recievedplayerproperties = JsonUtility.FromJson <PlayerPropJson>(response); SetPlayerPropertiesfromRecieved(); }