Exemple #1
0
 public void DeletePlayerImmediate(PlayerID playerID)
 {
     Debug.LogFormat("Call to delete player: {0} with ID {1}", playerID.nameText.text, playerID.playerID);
     PlayFabAdminAPI.DeleteMasterPlayerAccount(new DeleteMasterPlayerAccountRequest {
         PlayFabId = playerID.playerID
     },
                                               result => {
         Debug.Log("DELETE PLAYER OK: " + result.ToJson().ToString());
         Destroy(playerID.gameObject);
     },
                                               error => {
         Debug.LogError("DELETE PLAYER ERROR: " + error.GenerateErrorReport());
         Inform(string.Format("Unable to delete {0}! {1}", playerID.displayName, error.ErrorMessage));
     });
 }