I've been trying to set a SFSObject as an UserVariable on the server and play with it.
So, on the server side I have something like:
Code: Select all
ISFSObject score = new SFSObject();
score.putInt("wins", 20);
score.putLong("points", 800);
List<UserVariable> uvList = new ArrayList<>();
uvList.add(new SFSUserVariable("score", score));
someUser.setVariables(uvList);
Code: Select all
Debug.Log("Wins: " + thatUser.GetVariable("score").GetSFSObjectValue().GetInt("wins");
Now I wonder, is it possible to set SFSObjects as UserVariables and use them on Client Side?
Thanks.