// ***************************************************************** Start Handle ******************************** // Ошибка загрузки - пауза перед повторной void HandleOnAdFailedToLoad(object sender, EventArgs args) { float delaySecondsLoadAfterFailed = ++countFailedLoads >= 3 ? 10 : 30; showTextConsol("HandleOnAdFailedToLoad! delay=" + delaySecondsLoadAfterFailed); ClassDelay.DelaySecondCallBack(this, delaySecondsLoadAfterFailed, load); }
// Реклама закрыта void HandleOnAdClosed(object sender, EventArgs args) { showTextConsol("HandleOnAdClosed! delay=" + delaySecondLoadAfterClosed); NotificationCenter.GetI.postNotification(ON_REWARD_AD_CLOSED, this); ClassDelay.DelaySecondCallBack(this, delaySecondLoadAfterClosed, load); }
// ***************************************************************** 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); }