@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chiyou/minigame-framework",
3
- "version": "1.2.63",
3
+ "version": "1.2.64",
4
4
  "description": "基于 Cocos Creator 3.x 的小游戏开发框架,支持多平台发布",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -281,24 +281,24 @@ export class AdMgr extends BaseMgr {
281
281
  }
282
282
 
283
283
  if (res === RewardedVideoAd_Callback_Status.Status_Watching) {
284
- if (this.audioMgr === null) {
285
- this.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
284
+ if (AdMgr.Instance.audioMgr === null) {
285
+ AdMgr.Instance.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
286
286
  }
287
287
 
288
- if (this.audioMgr) {
289
- this.audioMgr.pauseMusic();
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 (this.audioMgr === null) {
297
- this.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
296
+ if (AdMgr.Instance.audioMgr === null) {
297
+ AdMgr.Instance.audioMgr = ServiceLocator.Instance.get<AudioMgr>("AudioMgr");
298
298
  }
299
299
 
300
- if (this.audioMgr) {
301
- this.audioMgr.resumeMusic();
300
+ if (AdMgr.Instance.audioMgr) {
301
+ AdMgr.Instance.audioMgr.resumeMusic();
302
302
  }
303
303
 
304
304
  AdMgr.Instance.showAllPermanentAd();