示例#1
0
    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);
    }
示例#2
0
 void CallBackAction(string response)
 {
     Debug.Log(response);
     output.text = response;
     recievedplayerproperties = JsonUtility.FromJson <PlayerPropJson>(response);
     SetPlayerPropertiesfromRecieved();
 }