예제 #1
0
    public AdSequenceHandle ShowAdSequence(string placementId)
    {
        var handle = new AdSequenceHandle()
        {
            Result = ShowResult.Failed
        };

        handle.Coroutine = StartCoroutine(ShowAdSequence(handle, placementId));

        return(handle);
    }
예제 #2
0
    IEnumerator ShowAdSequence(AdSequenceHandle handle, string placementId)
    {
        bool done = false;

        ShowAd(placementId, result =>
        {
            handle.Result = result;
            done          = true;
        });

        yield return(new WaitUntil(() => done));
    }