Yield App42 callback

I want to print the highscores. I’m using App42 backend. How can I use a coroutine to wait until the data is fetched and then print it, so that I can use a “Please wait” notification to the user?

You need to use a boolean flag:

//C#
bool callbackExecuted = false;

vois SomeCallbackRoutine()
{
    callbackExecuted = true;
}

IEnumerator SomeCoroutine()
{
    // please wait ....
    while (!callbackExecuted)
        yield return null;
    // done
}