Esempio n. 1
0
    // ***************************************************************** Start Handle ********************************

    // Ошибка загрузки - пауза перед повторной
    void HandleOnAdFailedToLoad(object sender, EventArgs args)
    {
        float delaySecondsLoadAfterFailed = ++countFailedLoads >= 3 ? 10 : 30;

        showTextConsol("HandleOnAdFailedToLoad! delay=" + delaySecondsLoadAfterFailed);
        ClassDelay.DelaySecondCallBack(this, delaySecondsLoadAfterFailed, load);
    }
Esempio n. 2
0
 void Awake()
 {
     showTextConsol("Awake");
     instance = this;
     DontDestroyOnLoad(gameObject);
     ClassDelay.DelayFramesCallBack(this, 2, loadAds);
 }
Esempio n. 3
0
 // Реклама закрыта
 void HandleOnAdClosed(object sender, EventArgs args)
 {
     showTextConsol("HandleOnAdClosed! delay=" + delaySecondLoadAfterClosed);
     NotificationCenter.GetI.postNotification(ON_REWARD_AD_CLOSED, this);
     ClassDelay.DelaySecondCallBack(this, delaySecondLoadAfterClosed, load);
 }
Esempio n. 4
0
    // ***************************************************************** Start Handle ********************************

    virtual public void HandleOnAdFailedToLoad(object sender, EventArgs args)
    {
        showTextConsol("HandleOnAdFailedToLoad ");
        destroy();
        ClassDelay.DelaySecondCallBack(this, 30, load);
    }
 public override void HandleOnAdClosed(object sender, EventArgs args)
 {
     base.HandleOnAdClosed(sender, args);
     NotificationCenter.GetI.postNotification(ON_INTERLEVEL_AD_CLOSED, this);
     ClassDelay.DelaySecondCallBack(this, 30, load);
 }