File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change 55using GoogleMobileAds . Api ;
66#endif
77using System . Collections ;
8-
8+ using VirtueSky . Core ;
99
1010namespace VirtueSky . Ads
1111{
@@ -191,9 +191,9 @@ private void OnAdFailedToLoad(LoadAdError error)
191191 {
192192 Common . CallActionAndClean ( ref failedToLoadCallback ) ;
193193 OnFailedToLoadAdEvent ? . Invoke ( error . GetMessage ( ) ) ;
194- if ( _reload != null ) Advertising . StopCoroutine ( _reload ) ;
194+ if ( _reload != null ) App . StopCoroutine ( _reload ) ;
195195 _reload = DelayBannerReload ( ) ;
196- Advertising . StartCoroutine ( _reload ) ;
196+ App . StartCoroutine ( _reload ) ;
197197 }
198198
199199 private void OnAdClosed ( )
Original file line number Diff line number Diff line change @@ -253,21 +253,6 @@ private static void AutoInitialize()
253253 }
254254 }
255255
256- private Coroutine StartCoroutineImpl ( IEnumerator routine )
257- {
258- if ( routine != null )
259- {
260- return StartCoroutine ( routine ) ;
261- }
262-
263- return null ;
264- }
265-
266- private void StopCoroutineImpl ( IEnumerator routine )
267- {
268- if ( routine != null ) StopCoroutine ( routine ) ;
269- }
270-
271256 #region Public API
272257
273258 public static AdUnit BannerAd => Instance . currentAdClient . BannerAdUnit ( ) ;
@@ -276,14 +261,6 @@ private void StopCoroutineImpl(IEnumerator routine)
276261 public static AdUnit RewardedInterstitialAd => Instance . currentAdClient . RewardedInterstitialAdUnit ( ) ;
277262 public static AdUnit AppOpenAd => Instance . currentAdClient . AppOpenAdUnit ( ) ;
278263
279- [ System . Runtime . CompilerServices . MethodImpl (
280- System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ]
281- internal static Coroutine StartCoroutine ( IEnumerator routine ) => Instance . StartCoroutineImpl ( routine ) ;
282-
283- [ System . Runtime . CompilerServices . MethodImpl (
284- System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ]
285- internal static void StopCoroutine ( IEnumerator routine ) => Instance . StopCoroutineImpl ( routine ) ;
286-
287264 #endregion
288265 }
289266}
You can’t perform that action at this time.
0 commit comments