Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void PlayFabAuthService_OnLoginSuccess(PlayFab.ClientModels.LoginResult success)
- {
- Debug.Log("Playfab Success");
- var request = new ExecuteFunctionRequest
- {
- FunctionName = "HelloWorld",
- //FunctionParameter = new PlayFabIdRequest
- //{
- // PlayFabId = success.PlayFabId,
- //},
- AuthenticationContext = new PlayFabAuthenticationContext
- {
- EntityToken = success.EntityToken.EntityToken
- }
- };
- PlayFabCloudScriptAPI.ExecuteFunction(request,
- (result) =>
- {
- Debug.Log("success");
- },
- (error) =>
- {
- Debug.Log("fail");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement