hot296652579 пре 1 дан
родитељ
комит
7680d3155b

+ 28 - 52
assets/core_tgx/base/ad/AdvertMgr.ts

@@ -1,7 +1,5 @@
 import { _decorator, Node, Prefab, instantiate, Component, Camera, UITransform, v3, game, view, screen, tween, Vec3 } from 'cc';
-import { EventDispatcher } from '../../easy_ui_framework/EventDispatcher';
-import { ADEvent } from './ADEvent';
-import { AudioMgr } from '../AudioMgr';
+
 import { tgxUITips } from 'db://assets/core_tgx/tgx';
 import { GtagMgr, GtagType } from 'db://assets/core_tgx/base/GtagMgr';
 const { ccclass, property } = _decorator;
@@ -21,64 +19,42 @@ export class AdvertMgr {
 
     initilize(): void {
         this.adInstance = (window as any)['adInstance'];
-        console.log('ad sdk初始化');
-        console.log(this.adInstance);
+        // console.log('ad sdk初始化');
+        // console.log(this.adInstance);
     }
 
     /** 显示插屏广告*/
     showInterstitial(cb?: () => void): void {
-        if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-        }
 
-        this.adInstance.interstitialAd({
-            beforeAd() {
-                console.log('The ad starts playing');
-            },
-            afterAd() {
-                console.log('The ad ends playing');
-            },
-            error(err) {
-                // console.log('The ad failed to load');
-                tgxUITips.show(err);
-                AudioMgr.inst.resume();
-                GtagMgr.inst.doGameDot(GtagType.ad_error);
-            }
-        });
+        try {
+            window['showAd']('interstitial').then(() => {
+
+            }).catch(() => {
+                // GtagMgr.inst.doGameDot(GtagType.ad_error);
+            });
+        } catch (error) {
+            // tgxUITips.show('The ad failed to load')
+        }
     }
 
     /** 显示激励广告*/
     showReawardVideo(cb?: () => void): void {
-        if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-        }
 
-        this.adInstance.rewardAd({
-            beforeAd() {
-                console.log('The ad starts playing, and the game should pause.');
-                EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_PLAY);
-                AudioMgr.inst.pause();
-            },
-            adDismissed() {
-                console.log('Player dismissed the ad before completion.');
-                EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_DISMISSED);
-                AudioMgr.inst.resume();
-            },
-            adViewed() {
-                console.log('Ad was viewed and closed.');
-                if (cb) cb();
-                EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_CLOSEED);
-                AudioMgr.inst.resume();
-            },
-            error(err: any) {
-                // console.log(`激励广告错误:${err}`);
-                tgxUITips.show(err);
-                // EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_ERROR);
-                AudioMgr.inst.resume();
-                GtagMgr.inst.doGameDot(GtagType.ad_error);
-            }
-        });
+        try {
+            window["showAd"]('rewarded')
+                .then(() => {
+                    if (cb) cb();
+                })
+                .catch(() => {
+                    tgxUITips.show('The ad failed to load');
+                    //上报信息
+                    // GtagMgr.inst.doGameDot(GtagType.ad_error);
+                    // cb && cb();
+                })
+            return
+        } catch (error) {
+
+        }
+        tgxUITips.show('The ads failed to load');
     }
 }

+ 44 - 38
assets/scripts/GlobalMgr.ts

@@ -13,65 +13,71 @@ export class GlobalMgr {
 
     //初始化__woso 挂载到window对象上
     public initilize() {
-        window.__woso = {
-            SoundMr: {
+        window["youxi"] = {
+            SoundManager: {
                 pauseAll: () => {
-                    GlobalMgr.instance.pauseAllSounds();
+                    // console.log("暂停游戏所有声音 oh~~~~~~~~~~~");
+                    AudioMgr.inst.toggleBgMusic(false);
+                    AudioMgr.inst.toggleSoundEffects(false);
                 },
                 resumeAll: () => {
-                    GlobalMgr.instance.resumeAllSounds();
+                    // console.log("恢复游戏所有声音 emo~~~~~~~~~~");
+                    AudioMgr.inst.toggleBgMusic(true);
+                    AudioMgr.inst.toggleSoundEffects(true);
                 }
             },
             TargetedAds: {
                 open: () => {
-                    GlobalMgr.instance.openAd();
+                    console.log("开启广告");
+                    AdvertMgr.instance.openAd = true;
                 },
                 clos: () => {
-                    GlobalMgr.instance.closeAd();
+                    console.log("关闭广告");
+                    AdvertMgr.instance.openAd = false;
                 }
             },
             Fps: {
                 setfps: (value) => {
-                    GlobalMgr.instance.setfps(value);
+                    // GlobalMgr.instance.setfps(value);
                 }
             }
         };
     }
 
-    // 暂停所有声音
-    pauseAllSounds() {
-        // console.log("暂停游戏所有声音 oh~~~~~~~~~~~");
-        AudioMgr.inst.toggleBgMusic(false);
-        AudioMgr.inst.toggleSoundEffects(false);
-    }
-    // 恢复所有声音
-    resumeAllSounds() {
-        // console.log("恢复游戏所有声音 emo~~~~~~~~~~");
-        AudioMgr.inst.toggleBgMusic(true);
-        AudioMgr.inst.toggleSoundEffects(true);
-    }
+    // // 暂停所有声音
+    // pauseAllSounds() {
+    //     // console.log("暂停游戏所有声音 oh~~~~~~~~~~~");
+    //     AudioMgr.inst.toggleBgMusic(false);
+    //     AudioMgr.inst.toggleSoundEffects(false);
+    // }
+    // // 恢复所有声音
+    // resumeAllSounds() {
+    //     // console.log("恢复游戏所有声音 emo~~~~~~~~~~");
+    //     AudioMgr.inst.toggleBgMusic(true);
+    //     AudioMgr.inst.toggleSoundEffects(true);
+    // }
 
-    //开启广告
-    openAd() {
-        console.log("开启广告");
-        AdvertMgr.instance.openAd = true;
-    }
+    // //开启广告
+    // openAd() {
+    //     console.log("开启广告");
+    //     AdvertMgr.instance.openAd = true;
+    // }
 
-    //关闭广告
-    closeAd() {
-        console.log("关闭广告");
-        AdvertMgr.instance.openAd = false;
-    }
+    // //关闭广告
+    // closeAd() {
+    //     console.log("关闭广告");
+    //     AdvertMgr.instance.openAd = false;
+    // }
 
-    //设置帧率
-    setfps(value) {
-        console.log("设置帧率:", value);
-    }
+    // //设置帧率
+    // setfps(value) {
+    //     console.log("设置帧率:", value);
+    // }
 
-    timeTest() {
-        setTimeout(() => {
-            window.__woso.SoundMr.pauseAll();
-        }, 2000);
-    }
+    // timeTest() {
+    //     setTimeout(() => {
+    //         window.__woso.SoundMr.pauseAll();
+    //     }, 2000);
+    // }
 
 }

+ 15 - 15
assets/scripts/typings/global.d.ts

@@ -1,20 +1,20 @@
 interface RoosterMoveCar {
-    // 声音控制
-    SoundMr: {
-        pauseAll(): void;
-        resumeAll(): void;
-    };
-    // 广告开关
-    TargetedAds: {
-        open(): void;
-        clos(): void;
-    };
-    //Fps设置
-    Fps: {
-        setfps(value: number): void;
-    };
+    // // 声音控制
+    // SoundMr: {
+    //     pauseAll(): void;
+    //     resumeAll(): void;
+    // };
+    // // 广告开关
+    // TargetedAds: {
+    //     open(): void;
+    //     clos(): void;
+    // };
+    // //Fps设置
+    // Fps: {
+    //     setfps(value: number): void;
+    // };
 }
 
 declare interface Window {
-    __woso: RoosterMoveCar;
+    // __woso: RoosterMoveCar;
 }

+ 6 - 0
assets/start/Start.ts

@@ -59,6 +59,12 @@ export class Start extends Component {
         // GlobalMgr.instance.timeTest();
 
         AdvertMgr.instance.initilize();
+        try {
+            window["__woso"]?.["TopCallback"]?.();
+        } catch (error) {
+
+        }
+
         if (!GlobalConfig.isDebug) {
             AdvertMgr.instance.showInterstitial();
         }

+ 3 - 11
build-templates/web-mobile/index.html

@@ -57,10 +57,6 @@
   <!-- Import map -->
   <script src="src/import-map.json" type="systemjs-importmap" charset="utf-8"> </script>
 
-  <!-- <script>
-    System.import('./index.js').catch(function (err) { console.error(err); })
-  </script> -->
-
   <script>
     // adInstance = null
     // 动态加载外部脚本的方法
@@ -111,19 +107,16 @@
                 adInstance.rewardAd({
                   beforeAd: function () {
                     console.log("The ad starts playing, and the game should pause."),
-                      window.youxi.SoundManager.pauseAll(),
-                      window.youxi.GameManager.pauseAll();
+                      window.youxi.SoundManager.pauseAll();
                   },
                   adDismissed: function () {
                     console.log("Player dismissed the ad before completion."),
-                      window.youxi.SoundManager.resumeAll(),
-                      window.youxi.GameManager.resumeAll();
+                      window.youxi.SoundManager.resumeAll();
                     reject(new Error('Interstitial ad error'));
                   },
                   adViewed: function () {
                     console.log("Ad was viewed and closed."),
-                      window.youxi.SoundManager.resumeAll(),
-                      window.youxi.GameManager.resumeAll();
+                      window.youxi.SoundManager.resumeAll();
                     resolve({
                       result: 'success',
                       message: 'Interstitial ad closed'
@@ -132,7 +125,6 @@
                   error: function (n) {
                     console.log("error", n);
                     window.youxi.SoundManager.resumeAll();
-                    window.youxi.GameManager.resumeAll();
                     reject(new Error('Interstitial ad error'));
                   }
                 })

Разлика између датотеке није приказан због своје велике величине
+ 2 - 2
build/web-mobile/assets/main/index.js


+ 3 - 11
build/web-mobile/index.html

@@ -57,10 +57,6 @@
   <!-- Import map -->
   <script src="src/import-map.json" type="systemjs-importmap" charset="utf-8"> </script>
 
-  <!-- <script>
-    System.import('./index.js').catch(function (err) { console.error(err); })
-  </script> -->
-
   <script>
     // adInstance = null
     // 动态加载外部脚本的方法
@@ -111,19 +107,16 @@
                 adInstance.rewardAd({
                   beforeAd: function () {
                     console.log("The ad starts playing, and the game should pause."),
-                      window.youxi.SoundManager.pauseAll(),
-                      window.youxi.GameManager.pauseAll();
+                      window.youxi.SoundManager.pauseAll();
                   },
                   adDismissed: function () {
                     console.log("Player dismissed the ad before completion."),
-                      window.youxi.SoundManager.resumeAll(),
-                      window.youxi.GameManager.resumeAll();
+                      window.youxi.SoundManager.resumeAll();
                     reject(new Error('Interstitial ad error'));
                   },
                   adViewed: function () {
                     console.log("Ad was viewed and closed."),
-                      window.youxi.SoundManager.resumeAll(),
-                      window.youxi.GameManager.resumeAll();
+                      window.youxi.SoundManager.resumeAll();
                     resolve({
                       result: 'success',
                       message: 'Interstitial ad closed'
@@ -132,7 +125,6 @@
                   error: function (n) {
                     console.log("error", n);
                     window.youxi.SoundManager.resumeAll();
-                    window.youxi.GameManager.resumeAll();
                     reject(new Error('Interstitial ad error'));
                   }
                 })

+ 3 - 3
profiles/v2/packages/builder.json

@@ -99,8 +99,8 @@
         "id": "1736759207250",
         "progress": 1,
         "state": "success",
-        "stage": "build",
-        "message": "2025-5-19 16:31:07 build success in 10 s!",
+        "stage": "run",
+        "message": "2025-6-9 11:42:23 run package E:\\CocosCreator\\_Aliens\\build\\web-mobile success!",
         "options": {
           "name": "SnipingAliens",
           "server": "",
@@ -146,7 +146,7 @@
           "buildMode": "normal",
           "logDest": "project://temp/builder/log/web-mobile2025-1-13 17-06.log"
         },
-        "time": "2025-5-19 16:30:56",
+        "time": "2025-6-9 11:41:13",
         "dirty": false
       },
       "1741673552280": {

+ 50 - 50
profiles/v2/packages/scene.json

@@ -1112,31 +1112,6 @@
       },
       "scale": 0.4026225829873136
     },
-    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d": {
-      "position": {
-        "x": -390.40728582867087,
-        "y": 698.63551429852,
-        "z": 5000
-      },
-      "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
-      },
-      "viewCenter": {
-        "x": 0,
-        "y": 0,
-        "z": 0
-      },
-      "contentRect": {
-        "x": -2150.8631973753404,
-        "y": -755.7328982240887,
-        "width": 0,
-        "height": 0
-      },
-      "scale": 0.2726269331663144
-    },
     "b4b51e26-8df9-4c27-a300-00e08cb27bd6": {
       "position": {
         "x": 141.22016975253314,
@@ -1212,10 +1187,10 @@
       },
       "scale": 0.9875466998754671
     },
-    "19323c5d-5d36-438a-86ee-8288c690e5b0": {
+    "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 69.74333333333333,
-        "y": 156.36333333333332,
+        "x": -1602.3049494866718,
+        "y": 661.4990149322742,
         "z": 5000
       },
       "rotation": {
@@ -1230,17 +1205,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": 172.5,
-        "y": 383.5,
-        "width": 335,
-        "height": 744.768115942029
+        "x": -2133.9623620248913,
+        "y": -519.9619018193252,
+        "width": 356.85,
+        "height": 793
       },
-      "scale": 0.9710144927536232
+      "scale": 0.33560145272529873
     },
-    "9e293cde-e27b-4902-808b-e884f3e9da32": {
+    "be14c61f-22d8-4bb9-b444-ad9f29740469": {
       "position": {
-        "x": -1602.3049494866718,
-        "y": 661.4990149322742,
+        "x": 1401.975,
+        "y": 401.49999999999994,
         "z": 5000
       },
       "rotation": {
@@ -1255,17 +1230,17 @@
         "z": 0
       },
       "contentRect": {
-        "x": -2133.9623620248913,
-        "y": -519.9619018193252,
-        "width": 356.85,
+        "x": 1221.3,
+        "y": 0,
+        "width": 959.895392278954,
         "height": 793
       },
-      "scale": 0.33560145272529873
+      "scale": 0.9875466998754671
     },
-    "be14c61f-22d8-4bb9-b444-ad9f29740469": {
+    "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 1401.975,
-        "y": 401.49999999999994,
+        "x": 0,
+        "y": 0,
         "z": 5000
       },
       "rotation": {
@@ -1280,12 +1255,37 @@
         "z": 0
       },
       "contentRect": {
-        "x": 1221.3,
+        "x": -433.53300124533,
+        "y": -396.5,
+        "width": 0,
+        "height": 0
+      },
+      "scale": 1
+    },
+    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d": {
+      "position": {
+        "x": -2150.8631973753404,
+        "y": -755.7328982240886,
+        "z": 5000
+      },
+      "rotation": {
+        "x": 0,
         "y": 0,
-        "width": 959.895392278954,
-        "height": 793
+        "z": 0,
+        "w": 1
       },
-      "scale": 0.9875466998754671
+      "viewCenter": {
+        "x": 0,
+        "y": 0,
+        "z": 0
+      },
+      "contentRect": {
+        "x": -2150.8631973753404,
+        "y": -755.7328982240887,
+        "width": 0,
+        "height": 0
+      },
+      "scale": 0.2726269331663144
     }
   },
   "camera-uuids": [
@@ -1332,13 +1332,13 @@
     "29dc5799-9f85-4365-b308-d63b7f8c6727",
     "55742b3c-e667-4650-8011-efdabf3e5d1b",
     "773de0b0-468b-4fbb-965c-36c47d7a4c94",
-    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d",
     "b4b51e26-8df9-4c27-a300-00e08cb27bd6",
     "4fac1625-c75a-4a5f-96e6-e15ddac448ae",
     "d6678b55-2635-45df-bdce-51e04632740e",
-    "19323c5d-5d36-438a-86ee-8288c690e5b0",
     "9e293cde-e27b-4902-808b-e884f3e9da32",
-    "be14c61f-22d8-4bb9-b444-ad9f29740469"
+    "be14c61f-22d8-4bb9-b444-ad9f29740469",
+    "19323c5d-5d36-438a-86ee-8288c690e5b0",
+    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d"
   ],
   "camera": {
     "color": [

+ 0 - 189
temp/programming/packer-driver/targets/editor/chunks/4e/4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js

@@ -1,189 +0,0 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5"], function (_export, _context) {
-  "use strict";
-
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, EventDispatcher, ADEvent, AudioMgr, tgxUITips, GtagMgr, GtagType, _dec, _class, _class2, _crd, ccclass, property, AdvertMgr;
-
-  function _reportPossibleCrUseOfEventDispatcher(extras) {
-    _reporterNs.report("EventDispatcher", "../../easy_ui_framework/EventDispatcher", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfADEvent(extras) {
-    _reporterNs.report("ADEvent", "./ADEvent", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfAudioMgr(extras) {
-    _reporterNs.report("AudioMgr", "../AudioMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOftgxUITips(extras) {
-    _reporterNs.report("tgxUITips", "db://assets/core_tgx/tgx", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagMgr(extras) {
-    _reporterNs.report("GtagMgr", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagType(extras) {
-    _reporterNs.report("GtagType", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  return {
-    setters: [function (_unresolved_) {
-      _reporterNs = _unresolved_;
-    }, function (_cc) {
-      _cclegacy = _cc.cclegacy;
-      __checkObsolete__ = _cc.__checkObsolete__;
-      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
-      _decorator = _cc._decorator;
-    }, function (_unresolved_2) {
-      EventDispatcher = _unresolved_2.EventDispatcher;
-    }, function (_unresolved_3) {
-      ADEvent = _unresolved_3.ADEvent;
-    }, function (_unresolved_4) {
-      AudioMgr = _unresolved_4.AudioMgr;
-    }, function (_unresolved_5) {
-      tgxUITips = _unresolved_5.tgxUITips;
-    }, function (_unresolved_6) {
-      GtagMgr = _unresolved_6.GtagMgr;
-      GtagType = _unresolved_6.GtagType;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "0d92aYdY25Lhb1qoZ1C2zbU", "AdvertMgr", undefined);
-
-      __checkObsolete__(['_decorator', 'Node', 'Prefab', 'instantiate', 'Component', 'Camera', 'UITransform', 'v3', 'game', 'view', 'screen', 'tween', 'Vec3']);
-
-      ({
-        ccclass,
-        property
-      } = _decorator);
-      /** 广告管理*/
-
-      _export("AdvertMgr", AdvertMgr = (_dec = ccclass('AdvertMgr'), _dec(_class = (_class2 = class AdvertMgr {
-        constructor() {
-          this.adInstance = null;
-          this.gtag = null;
-          this.openAd = true;
-        }
-
-        static get instance() {
-          if (!this._instance) this._instance = new AdvertMgr();
-          return this._instance;
-        }
-
-        initilize() {
-          this.adInstance = window['adInstance'];
-          console.log('ad sdk初始化');
-          console.log(this.adInstance);
-        }
-        /** 显示插屏广告*/
-
-
-        showInterstitial(cb) {
-          if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-          }
-
-          this.adInstance.interstitialAd({
-            beforeAd() {
-              console.log('The ad starts playing');
-            },
-
-            afterAd() {
-              console.log('The ad ends playing');
-            },
-
-            error(err) {
-              // console.log('The ad failed to load');
-              (_crd && tgxUITips === void 0 ? (_reportPossibleCrUseOftgxUITips({
-                error: Error()
-              }), tgxUITips) : tgxUITips).show(err);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-              (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
-                error: Error()
-              }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
-                error: Error()
-              }), GtagType) : GtagType).ad_error);
-            }
-
-          });
-        }
-        /** 显示激励广告*/
-
-
-        showReawardVideo(cb) {
-          if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-          }
-
-          this.adInstance.rewardAd({
-            beforeAd() {
-              console.log('The ad starts playing, and the game should pause.');
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_PLAY);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.pause();
-            },
-
-            adDismissed() {
-              console.log('Player dismissed the ad before completion.');
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_DISMISSED);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-            },
-
-            adViewed() {
-              console.log('Ad was viewed and closed.');
-              if (cb) cb();
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_CLOSEED);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-            },
-
-            error(err) {
-              // console.log(`激励广告错误:${err}`);
-              (_crd && tgxUITips === void 0 ? (_reportPossibleCrUseOftgxUITips({
-                error: Error()
-              }), tgxUITips) : tgxUITips).show(err); // EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_ERROR);
-
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-              (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
-                error: Error()
-              }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
-                error: Error()
-              }), GtagType) : GtagType).ad_error);
-            }
-
-          });
-        }
-
-      }, _class2._instance = null, _class2)) || _class));
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js.map

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/4e/4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js.map


+ 0 - 129
temp/programming/packer-driver/targets/editor/chunks/9a/9a205a970af52592ff3e9122014dad3f1bd8220a.js

@@ -1,129 +0,0 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
-  "use strict";
-
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, AudioMgr, AdvertMgr, _dec, _class, _class2, _crd, ccclass, property, GlobalMgr;
-
-  function _reportPossibleCrUseOfAudioMgr(extras) {
-    _reporterNs.report("AudioMgr", "../core_tgx/base/AudioMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfAdvertMgr(extras) {
-    _reporterNs.report("AdvertMgr", "../core_tgx/base/ad/AdvertMgr", _context.meta, extras);
-  }
-
-  return {
-    setters: [function (_unresolved_) {
-      _reporterNs = _unresolved_;
-    }, function (_cc) {
-      _cclegacy = _cc.cclegacy;
-      __checkObsolete__ = _cc.__checkObsolete__;
-      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
-      _decorator = _cc._decorator;
-    }, function (_unresolved_2) {
-      AudioMgr = _unresolved_2.AudioMgr;
-    }, function (_unresolved_3) {
-      AdvertMgr = _unresolved_3.AdvertMgr;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "13efcXgb51ALL6fUqMOeIrw", "GlobalMgr", undefined);
-
-      __checkObsolete__(['Node', 'Prefab', '_decorator', 'assetManager', 'find', 'instantiate']);
-
-      ({
-        ccclass,
-        property
-      } = _decorator);
-
-      _export("GlobalMgr", GlobalMgr = (_dec = ccclass('GlobalMgr'), _dec(_class = (_class2 = class GlobalMgr {
-        static get instance() {
-          if (!this._instance) this._instance = new GlobalMgr();
-          return this._instance;
-        } //初始化__woso 挂载到window对象上
-
-
-        initilize() {
-          window.__woso = {
-            SoundMr: {
-              pauseAll: () => {
-                GlobalMgr.instance.pauseAllSounds();
-              },
-              resumeAll: () => {
-                GlobalMgr.instance.resumeAllSounds();
-              }
-            },
-            TargetedAds: {
-              open: () => {
-                GlobalMgr.instance.openAd();
-              },
-              clos: () => {
-                GlobalMgr.instance.closeAd();
-              }
-            },
-            Fps: {
-              setfps: value => {
-                GlobalMgr.instance.setfps(value);
-              }
-            }
-          };
-        } // 暂停所有声音
-
-
-        pauseAllSounds() {
-          // console.log("暂停游戏所有声音 oh~~~~~~~~~~~");
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleBgMusic(false);
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleSoundEffects(false);
-        } // 恢复所有声音
-
-
-        resumeAllSounds() {
-          // console.log("恢复游戏所有声音 emo~~~~~~~~~~");
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleBgMusic(true);
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleSoundEffects(true);
-        } //开启广告
-
-
-        openAd() {
-          console.log("开启广告");
-          (_crd && AdvertMgr === void 0 ? (_reportPossibleCrUseOfAdvertMgr({
-            error: Error()
-          }), AdvertMgr) : AdvertMgr).instance.openAd = true;
-        } //关闭广告
-
-
-        closeAd() {
-          console.log("关闭广告");
-          (_crd && AdvertMgr === void 0 ? (_reportPossibleCrUseOfAdvertMgr({
-            error: Error()
-          }), AdvertMgr) : AdvertMgr).instance.openAd = false;
-        } //设置帧率
-
-
-        setfps(value) {
-          console.log("设置帧率:", value);
-        }
-
-        timeTest() {
-          setTimeout(() => {
-            window.__woso.SoundMr.pauseAll();
-          }, 2000);
-        }
-
-      }, _class2._instance = null, _class2)) || _class));
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=9a205a970af52592ff3e9122014dad3f1bd8220a.js.map

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/9a/9a205a970af52592ff3e9122014dad3f1bd8220a.js.map


+ 0 - 189
temp/programming/packer-driver/targets/preview/chunks/4e/4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js

@@ -1,189 +0,0 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5"], function (_export, _context) {
-  "use strict";
-
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, EventDispatcher, ADEvent, AudioMgr, tgxUITips, GtagMgr, GtagType, _dec, _class, _class2, _crd, ccclass, property, AdvertMgr;
-
-  function _reportPossibleCrUseOfEventDispatcher(extras) {
-    _reporterNs.report("EventDispatcher", "../../easy_ui_framework/EventDispatcher", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfADEvent(extras) {
-    _reporterNs.report("ADEvent", "./ADEvent", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfAudioMgr(extras) {
-    _reporterNs.report("AudioMgr", "../AudioMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOftgxUITips(extras) {
-    _reporterNs.report("tgxUITips", "db://assets/core_tgx/tgx", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagMgr(extras) {
-    _reporterNs.report("GtagMgr", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagType(extras) {
-    _reporterNs.report("GtagType", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  return {
-    setters: [function (_unresolved_) {
-      _reporterNs = _unresolved_;
-    }, function (_cc) {
-      _cclegacy = _cc.cclegacy;
-      __checkObsolete__ = _cc.__checkObsolete__;
-      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
-      _decorator = _cc._decorator;
-    }, function (_unresolved_2) {
-      EventDispatcher = _unresolved_2.EventDispatcher;
-    }, function (_unresolved_3) {
-      ADEvent = _unresolved_3.ADEvent;
-    }, function (_unresolved_4) {
-      AudioMgr = _unresolved_4.AudioMgr;
-    }, function (_unresolved_5) {
-      tgxUITips = _unresolved_5.tgxUITips;
-    }, function (_unresolved_6) {
-      GtagMgr = _unresolved_6.GtagMgr;
-      GtagType = _unresolved_6.GtagType;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "0d92aYdY25Lhb1qoZ1C2zbU", "AdvertMgr", undefined);
-
-      __checkObsolete__(['_decorator', 'Node', 'Prefab', 'instantiate', 'Component', 'Camera', 'UITransform', 'v3', 'game', 'view', 'screen', 'tween', 'Vec3']);
-
-      ({
-        ccclass,
-        property
-      } = _decorator);
-      /** 广告管理*/
-
-      _export("AdvertMgr", AdvertMgr = (_dec = ccclass('AdvertMgr'), _dec(_class = (_class2 = class AdvertMgr {
-        constructor() {
-          this.adInstance = null;
-          this.gtag = null;
-          this.openAd = true;
-        }
-
-        static get instance() {
-          if (!this._instance) this._instance = new AdvertMgr();
-          return this._instance;
-        }
-
-        initilize() {
-          this.adInstance = window['adInstance'];
-          console.log('ad sdk初始化');
-          console.log(this.adInstance);
-        }
-        /** 显示插屏广告*/
-
-
-        showInterstitial(cb) {
-          if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-          }
-
-          this.adInstance.interstitialAd({
-            beforeAd() {
-              console.log('The ad starts playing');
-            },
-
-            afterAd() {
-              console.log('The ad ends playing');
-            },
-
-            error(err) {
-              // console.log('The ad failed to load');
-              (_crd && tgxUITips === void 0 ? (_reportPossibleCrUseOftgxUITips({
-                error: Error()
-              }), tgxUITips) : tgxUITips).show(err);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-              (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
-                error: Error()
-              }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
-                error: Error()
-              }), GtagType) : GtagType).ad_error);
-            }
-
-          });
-        }
-        /** 显示激励广告*/
-
-
-        showReawardVideo(cb) {
-          if (!this.adInstance || !this.openAd) {
-            cb && cb();
-            return;
-          }
-
-          this.adInstance.rewardAd({
-            beforeAd() {
-              console.log('The ad starts playing, and the game should pause.');
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_PLAY);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.pause();
-            },
-
-            adDismissed() {
-              console.log('Player dismissed the ad before completion.');
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_DISMISSED);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-            },
-
-            adViewed() {
-              console.log('Ad was viewed and closed.');
-              if (cb) cb();
-              (_crd && EventDispatcher === void 0 ? (_reportPossibleCrUseOfEventDispatcher({
-                error: Error()
-              }), EventDispatcher) : EventDispatcher).instance.emit((_crd && ADEvent === void 0 ? (_reportPossibleCrUseOfADEvent({
-                error: Error()
-              }), ADEvent) : ADEvent).REWARD_VIDEO_CLOSEED);
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-            },
-
-            error(err) {
-              // console.log(`激励广告错误:${err}`);
-              (_crd && tgxUITips === void 0 ? (_reportPossibleCrUseOftgxUITips({
-                error: Error()
-              }), tgxUITips) : tgxUITips).show(err); // EventDispatcher.instance.emit(ADEvent.REWARD_VIDEO_ERROR);
-
-              (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-                error: Error()
-              }), AudioMgr) : AudioMgr).inst.resume();
-              (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
-                error: Error()
-              }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
-                error: Error()
-              }), GtagType) : GtagType).ad_error);
-            }
-
-          });
-        }
-
-      }, _class2._instance = null, _class2)) || _class));
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js.map

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/4e/4e3ec0d06ebdd563929d2acc5d94c4ebb112eede.js.map


+ 0 - 129
temp/programming/packer-driver/targets/preview/chunks/9a/9a205a970af52592ff3e9122014dad3f1bd8220a.js

@@ -1,129 +0,0 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
-  "use strict";
-
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, AudioMgr, AdvertMgr, _dec, _class, _class2, _crd, ccclass, property, GlobalMgr;
-
-  function _reportPossibleCrUseOfAudioMgr(extras) {
-    _reporterNs.report("AudioMgr", "../core_tgx/base/AudioMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfAdvertMgr(extras) {
-    _reporterNs.report("AdvertMgr", "../core_tgx/base/ad/AdvertMgr", _context.meta, extras);
-  }
-
-  return {
-    setters: [function (_unresolved_) {
-      _reporterNs = _unresolved_;
-    }, function (_cc) {
-      _cclegacy = _cc.cclegacy;
-      __checkObsolete__ = _cc.__checkObsolete__;
-      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
-      _decorator = _cc._decorator;
-    }, function (_unresolved_2) {
-      AudioMgr = _unresolved_2.AudioMgr;
-    }, function (_unresolved_3) {
-      AdvertMgr = _unresolved_3.AdvertMgr;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "13efcXgb51ALL6fUqMOeIrw", "GlobalMgr", undefined);
-
-      __checkObsolete__(['Node', 'Prefab', '_decorator', 'assetManager', 'find', 'instantiate']);
-
-      ({
-        ccclass,
-        property
-      } = _decorator);
-
-      _export("GlobalMgr", GlobalMgr = (_dec = ccclass('GlobalMgr'), _dec(_class = (_class2 = class GlobalMgr {
-        static get instance() {
-          if (!this._instance) this._instance = new GlobalMgr();
-          return this._instance;
-        } //初始化__woso 挂载到window对象上
-
-
-        initilize() {
-          window.__woso = {
-            SoundMr: {
-              pauseAll: () => {
-                GlobalMgr.instance.pauseAllSounds();
-              },
-              resumeAll: () => {
-                GlobalMgr.instance.resumeAllSounds();
-              }
-            },
-            TargetedAds: {
-              open: () => {
-                GlobalMgr.instance.openAd();
-              },
-              clos: () => {
-                GlobalMgr.instance.closeAd();
-              }
-            },
-            Fps: {
-              setfps: value => {
-                GlobalMgr.instance.setfps(value);
-              }
-            }
-          };
-        } // 暂停所有声音
-
-
-        pauseAllSounds() {
-          // console.log("暂停游戏所有声音 oh~~~~~~~~~~~");
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleBgMusic(false);
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleSoundEffects(false);
-        } // 恢复所有声音
-
-
-        resumeAllSounds() {
-          // console.log("恢复游戏所有声音 emo~~~~~~~~~~");
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleBgMusic(true);
-          (_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
-            error: Error()
-          }), AudioMgr) : AudioMgr).inst.toggleSoundEffects(true);
-        } //开启广告
-
-
-        openAd() {
-          console.log("开启广告");
-          (_crd && AdvertMgr === void 0 ? (_reportPossibleCrUseOfAdvertMgr({
-            error: Error()
-          }), AdvertMgr) : AdvertMgr).instance.openAd = true;
-        } //关闭广告
-
-
-        closeAd() {
-          console.log("关闭广告");
-          (_crd && AdvertMgr === void 0 ? (_reportPossibleCrUseOfAdvertMgr({
-            error: Error()
-          }), AdvertMgr) : AdvertMgr).instance.openAd = false;
-        } //设置帧率
-
-
-        setfps(value) {
-          console.log("设置帧率:", value);
-        }
-
-        timeTest() {
-          setTimeout(() => {
-            window.__woso.SoundMr.pauseAll();
-          }, 2000);
-        }
-
-      }, _class2._instance = null, _class2)) || _class));
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=9a205a970af52592ff3e9122014dad3f1bd8220a.js.map

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/9a/9a205a970af52592ff3e9122014dad3f1bd8220a.js.map


Неке датотеке нису приказане због велике количине промена