Matchmaking's API is mainly asynchronous to avoid interfering with the game engine and logic.
•
After the API call, it loads the result from the matchmaking server into the SDK internal queue.
•
Call the RunCallback method when the game wants to process the received result.
•
Callbacks loaded in the queue are executed sequentially.
Unity provides a means to call specific methods periodically.
using Stove.PCSDK.NET.Matchmaking;
private FixedUpdate()
{
// Called repeatedly every fixed frame
SDK.RunCallback();
}
JavaScript
복사