Skip to content

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

@spicychen

Description

@spicychen

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.

Metadata

Metadata

Labels

Health TriagedTriaged within product health

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions