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 5
5
using GoogleMobileAds . Api ;
6
6
#endif
7
7
using System . Collections ;
8
-
8
+ using VirtueSky . Core ;
9
9
10
10
namespace VirtueSky . Ads
11
11
{
@@ -191,9 +191,9 @@ private void OnAdFailedToLoad(LoadAdError error)
191
191
{
192
192
Common . CallActionAndClean ( ref failedToLoadCallback ) ;
193
193
OnFailedToLoadAdEvent ? . Invoke ( error . GetMessage ( ) ) ;
194
- if ( _reload != null ) Advertising . StopCoroutine ( _reload ) ;
194
+ if ( _reload != null ) App . StopCoroutine ( _reload ) ;
195
195
_reload = DelayBannerReload ( ) ;
196
- Advertising . StartCoroutine ( _reload ) ;
196
+ App . StartCoroutine ( _reload ) ;
197
197
}
198
198
199
199
private void OnAdClosed ( )
Original file line number Diff line number Diff line change @@ -253,21 +253,6 @@ private static void AutoInitialize()
253
253
}
254
254
}
255
255
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
-
271
256
#region Public API
272
257
273
258
public static AdUnit BannerAd => Instance . currentAdClient . BannerAdUnit ( ) ;
@@ -276,14 +261,6 @@ private void StopCoroutineImpl(IEnumerator routine)
276
261
public static AdUnit RewardedInterstitialAd => Instance . currentAdClient . RewardedInterstitialAdUnit ( ) ;
277
262
public static AdUnit AppOpenAd => Instance . currentAdClient . AppOpenAdUnit ( ) ;
278
263
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
-
287
264
#endregion
288
265
}
289
266
}
You can’t perform that action at this time.
0 commit comments