Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PlayFabClientAPI.LoginWithCustomID(new LoginWithCustomIDRequest()
- {
- TitleId = PlayFabSettings.TitleId,
- CreateAccount = true,
- CustomId = SystemInfo.deviceUniqueIdentifier
- }, (loginResult) =>
- {
- PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest()
- {
- FunctionName = "GetUserInfoWithID",
- FunctionParameter = new Dictionary<string, string>
- {
- { "PlayerID", "11AABB1A88D63DC8" }
- }
- }, (result) =>
- {
- var account = PlayFab.SimpleJson.DeserializeObject<JsonObject>(result.FunctionResult.ToString());
- var accountJson = account["UserInfo"].ToString();
- var accountInfo = PlayFab.SimpleJson.DeserializeObject<UserAccountInfo>(accountJson, Util.ApiSerializerStrategy);
- Debug.Log("test");
- Debug.Log(accountInfo.PlayFabId);
- }, HandlePlayFabError);
- }, HandlePlayFabError);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement