@chiyou/minigame-framework 1.2.63 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -281,24 +281,24 @@ export class AdMgr extends BaseMgr {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
if (res === RewardedVideoAd_Callback_Status.Status_Watching) {
|
|
284
|
-
if (
|
|
285
|
-
|
|
284
|
+
if (AdMgr.Instance.audioMgr === null) {
|
|
285
|
+
AdMgr.Instance.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
if (
|
|
289
|
-
|
|
288
|
+
if (AdMgr.Instance.audioMgr) {
|
|
289
|
+
AdMgr.Instance.audioMgr.pauseMusic();
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
AdMgr.Instance.hideAllPermanentAd();
|
|
293
293
|
} else if (res === RewardedVideoAd_Callback_Status.Status_Complete ||
|
|
294
294
|
res === RewardedVideoAd_Callback_Status.Status_Giveup ||
|
|
295
295
|
res === RewardedVideoAd_Callback_Status.Status_Error) {
|
|
296
|
-
if (
|
|
297
|
-
|
|
296
|
+
if (AdMgr.Instance.audioMgr === null) {
|
|
297
|
+
AdMgr.Instance.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
if (
|
|
301
|
-
|
|
300
|
+
if (AdMgr.Instance.audioMgr) {
|
|
301
|
+
AdMgr.Instance.audioMgr.resumeMusic();
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
AdMgr.Instance.showAllPermanentAd();
|