public void OnAdError(IAdErrorEvent error_event) { // If an error occurs just destroy the AdsManager and set the state to Done to resume gameplay. System.Diagnostics.Debug.WriteLine("Error: " + error_event.Error); if (error_event.Error.ErrorCode == AdError.AdErrorCode.VastEmptyResponse) { this.NoAdsFoundTimer.Mark(); this.State = AdState.NoAdsFound; Action exec = () => { this.Finish(); }; Engine.SpawnInstance(new TimedExecution(2100, exec, true, false)); } else { this.Finish(); } }
public void OnAdError(IAdErrorEvent error_event) { this.AndroidAds.OnAdError(error_event); }