MicrosoftDocs / playfab-docs

Documentation for the Azure PlayFab service for game development
Creative Commons Attribution 4.0 International
97 stars 122 forks source link

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

Open spicychen opened 4 months ago

spicychen commented 4 months ago

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.