Exemplo n.º 1
0
 public void Load()
 {
     if (AdvertisementHandler.IsAdvertisementReady(this.placement))
     {
         this.SetState(AdReward.State.Ready, false);
     }
     else
     {
         this.SetState(AdReward.State.Loading, false);
     }
 }
Exemplo n.º 2
0
    private IEnumerator CheckVideoTimeout()
    {
        float counter = 0f;

        while (counter <= 10f)
        {
            counter += Time.unscaledDeltaTime;
            if (AdvertisementHandler.IsAdvertisementReady(this.placement))
            {
                break;
            }
            if (this.state == AdReward.State.Stalled || this.disposed)
            {
                yield break;
            }
            yield return(null);
        }
        yield break;
    }
Exemplo n.º 3
0
    private IEnumerator CheckVideoTimeout()
    {
        float counter = 0f;

        while (counter <= 10f)
        {
            counter += Time.deltaTime;
            if (AdvertisementHandler.IsAdvertisementReady(AdvertisementHandler.SnoutCoinRewardVideoPlacement))
            {
                break;
            }
            if (this.state == SnoutCoinAdRewardDialog.State.Stalled)
            {
                yield break;
            }
            yield return(null);
        }
        yield break;
    }