Reference Documentation of Apple GameKit Plugin:
I have a basic question on how to handle error when calling the SubmitScore function:
await leaderboard.SubmitScore(score, context, GKLocalPlayer.Local);```
Any help?
Reference Documentation of Apple GameKit Plugin:
I have a basic question on how to handle error when calling the SubmitScore function:
await leaderboard.SubmitScore(score, context, GKLocalPlayer.Local);```
Any help?
Here is the right way to process errors. Basically use try/catch as follows.
private async Task Start()
{
try
{
var result = await ...
}
catch(GameKitException exception)
{
Debug.LogError(exception);
}
}```