private IEnumerator PrepareError() { fireError = false; yield return(new WaitForSeconds(1f)); ErrorCode randomError = (ErrorCode)UnityEngine.Random.Range((int)ErrorCode.Unknown, (int)ErrorCode.ValidationFailure); AdErrorEventArgs arg = new AdErrorEventArgs(randomError, randomError.ToString()); Fire(AdCallback.Error, arg); }
private static void InterstitialAd_ErrorOccurred(object sender, AdErrorEventArgs e) { DebugLog.Log(LogLevel.Info, "ErrorOccurred " + e.ErrorMessage); isShowRequested = false; }
private IEnumerator PrepareError() { fireError = false; yield return new WaitForSeconds(1f); ErrorCode randomError = (ErrorCode)UnityEngine.Random.Range( (int)ErrorCode.Unknown, (int) ErrorCode.ValidationFailure); AdErrorEventArgs arg = new AdErrorEventArgs (randomError, randomError.ToString()); Fire(AdCallback.Error, arg ); }