Advertisement
Guest User

Untitled

a guest
Oct 28th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1.     private void PlayFabAuthService_OnLoginSuccess(PlayFab.ClientModels.LoginResult success)
  2.     {
  3.         Debug.Log("Playfab Success");
  4.  
  5.  
  6.         var request = new ExecuteFunctionRequest
  7.         {
  8.             FunctionName = "HelloWorld",
  9.             //FunctionParameter = new PlayFabIdRequest
  10.             //{
  11.             //    PlayFabId = success.PlayFabId,
  12.             //},
  13.             AuthenticationContext = new PlayFabAuthenticationContext
  14.             {
  15.                 EntityToken = success.EntityToken.EntityToken
  16.             }
  17.         };
  18.  
  19.         PlayFabCloudScriptAPI.ExecuteFunction(request,
  20.             (result) =>
  21.             {
  22.                 Debug.Log("success");
  23.             },
  24.             (error) =>
  25.             {
  26.                 Debug.Log("fail");
  27.  
  28.             });
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement