Inheritance: PlayFab.SharedModels.PlayFabResultCommon
Example #1
0
 /// <summary>
 /// Called if adding Username and Password is succesful. Sends a request for the playerdata to the Playfab server, connects to Photon.
 /// </summary>
 /// <param name="result">AddUsernamePasswordResult provided by the Playfab server.</param>
 public void OnAddUserNamePasswordResult(AddUsernamePasswordResult result)
 {
     if (onAddUsernamePasswordResult != null)
     {
         onAddUsernamePasswordResult(null, "Login succesful!");
     }
     PlayFabData.AuthKey = PlayFabClientAPI.AuthKey;
     PhotonControl.pObject.ConnectToPhoton();
     GetUserCombinedInfo();
 }