Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistakes in sample code in Quickstart: PlayFab Multiplayer Unity plugin document. #515

Open
spicychen opened this issue Mar 11, 2024 · 0 comments
Assignees
Labels
Health Triaged Triaged within product health

Comments

@spicychen
Copy link

spicychen commented Mar 11, 2024

In the Join a matchmaking ticket session of the document,
there is such code:
PlayFabMultiplayer.OnMatchmakingTicketCompleted += PlayFabMultiplayer_OnMatchmakingTicketStatusChanged;
And it is explained as

One OnMatchmakingTicketStatusChanged will be triggered with the Status being WaitingForMatch.

The code snippet should be corrected as below:
PlayFabMultiplayer.OnMatchmakingTicketStatusChanged += PlayFabMultiplayer_OnMatchmakingTicketStatusChanged;
because the PlayFabMultiplayer.OnMatchmakingTicketCompleted event is triggered when the ticket is cancelled or matched instead of status changed, right?

In the 2nd part of the codesnippet, there is such code:
Debub.Log(ticket.Status)

which should be changed to:
Debug.Log(ticket.Status);
just a bit typo, and please don't forget the semicolon at the end.

@thomasgu thomasgu added the Health Triaged Triaged within product health label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Health Triaged Triaged within product health
Projects
None yet
Development

No branches or pull requests

3 participants